-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Description
Gatsby generates all non-html files (e.g. *.js files, styles.css and chunk-manifest.json etc.) directly into public 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.