-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do i need to add the g
folder to .gitignore
?
#16
Comments
I think it's up to you, there are pros and cons. Typically, yes, you'd only commit the original files and gitignore the generated files, since they can be regenerated off of the original files, so you could save the space in your repo. You would have to regenerate them after a fresh checkout of the repo, though, so there might be certain circumstances where it makes sense to also commit the generated files. One example would be if you have a lot of images and your project is deployed using CI/CD runners taking a fresh checkout, so you'd spend a lot of processing time repeatedly regenerating all the images for every CI/CD run. You could commit the generated files and save the processing time at the expense of using more repo space. |
@xiphux, I thought it would be a distraction for me to create a new issue, but I was also looking to keep my repo clean by adding For context, I use Thank you for making this module! :) |
I'm not really familiar with |
It looks like the browser is trying to retrieve If it matters, on my local environment I can find the optimized images in |
If you can find the images in your local environment after running build, then I'd guess it's either:
|
I was able to get functionality to work by making two changes in my project: I'm not sure what the root cause is, but I guess there is a compatibility issue with the Cloudflare adapter. |
Do i need to add the
static/g
folder to.gitignore
?It's constantly generating new files...
The text was updated successfully, but these errors were encountered: