@snowpack/plugin-webpack expects HTML files #793
Replies: 1 comment 6 replies
-
Hey! Following up from our Twitter convo, this was the bundler issue you were talking about? I just got rails running in your example app, so that I have something to play around with. So the way our current build pipeline works is:
We expect that what you build into your destination directory is a full static website, complete with HTML files. "@snowpack/plugin-webpack" scans that HTML to find your JS entrypoints, bundles those, and automatically updates the So we need two bits of info to recreate this webpack step without access to the HTML files:
@ParamagicDev any thoughts / are we on the right track here? I bet snowpacker can be responsible for sending the JS entrypoint files to the plugin via config, but then I'm not sure about how we tell snowpacker about the result / where the bundles were written to. |
Beta Was this translation helpful? Give feedback.
-
When using @snowpack/plugin-webpack, it expects there to be HTML files, however, when using @snowpack/plugin-parcel I run into no issues.
I'm assuming the issue is due to how the plugin transform javascript file names in the HTML files. It seems like this plugin is meant for SPAs in mind.
For reference, I'm building snowpacker (a Rails integration with Snowpack) and looking to use a Bundler for production.
Beta Was this translation helpful? Give feedback.
All reactions