4 ms·
Is anyone using this in combination with a plain ole' server rendered app? All the examples seem to build on a SPA example where you have a single index.js entr
by MatekCopatek 6y ago
Is anyone using this in combination with a plain ole' server rendered app? All the examples seem to build on a SPA example where you have a single index.js entrypoint for your entire app. What about a Rails/Django project where each page loads a few scripts it needs?
That usecase has been stuck with the "global jQuery plugins" approach for ages and it feels like <script type="module"> + something like Snowpack would really improve it.
- Kovah 6y agoI actually tried this, and failed. Gave up after like three hours of trying to wrap my own non-React scripts with that Snowpack stuff. It seems the tool is not capable of handling those simple use cases, which is quite sad.