-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Allow to generate non-html files to a subfolder(s) #5270
Comments
Also linking #5271 as it's mentioned above. |
@m-allanson It does solve my issue, if I can select name of the folder in which all non-html files end up. If Gatsby new folder structure ends up like If I can set it up, so that all non-html files for the blog app end up e.g. in its own If that's what #3760 is proposing, then this ticket can be closed as a duplicate. |
Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help! |
Gatsby generates all non-html files (e.g.
*.js
files,styles.css
andchunk-manifest.json
etc.) directly intopublic
folder. However, there are some cases where it would be convenient to generate them into a subfolder, or subfolders.I explained my use case in detail here: #2335 (comment), but the gist is that if one has more than one app available at the same path, e.g.
/
, it would make it much easier to write proxy rules for Gatsby apps, if all html files were e.g. at/:locale/blog/
and all non-html assets were at/blog-assets/
, instead of/
.There's already a similar ticket #2335.
An alternative is to use
pathPrefix
option, but, at least in my case, it complicates things a lot and not everything works with it correctly, e.g.serve
command etc.The text was updated successfully, but these errors were encountered: