3 ms·
If you're looking for alternatives to Webpack, please also check out JSPM (a good short description might be "preprocessing system + package manager + systemjs"
by hardwaresofton 9y ago
If you're looking for alternatives to Webpack, please also check out JSPM (a good short description might be "preprocessing system + package manager + systemjs"):
https://jspm.io/ https://jspm.io/
It takes a little more to get it to work with vue (the plugin that makes .vue files work is older and unsupported nowadays), but I use it just fine, with my template, styling and component files separated (I wrote a little thing: https://gitlab.com/mrman/systemjs-plugin-vue-template-compiler#readme https://gitlab.com/mrman/systemjs-plugin-vue-template-compil...)
If you dislike how complex webpack is, you'll like JSPM -- here's the video that got me hooked (it's pretty old but still valid): https://www.youtube.com/watch?v=iukBMY4apvI https://www.youtube.com/watch?v=iukBMY4apvI
- aweiland 9y agoRollup looks pretty good too. It's on my list to play with. https://rollupjs.org/ https://rollupjs.org/
- kevmo314 9y agoRollup and webpack serve two somewhat different purposes: https://medium.com/webpack/webpack-and-rollup-the-same-but-different-a41ad427058c https://medium.com/webpack/webpack-and-rollup-the-same-but-d...
- akvadrako 9y agoRollup looks like the future - one big plus is the output looks nearly hand crafted compared to the unreadable mess webpack shits out.
- jameshush 9y agoWe used JSPM in production for a year and a half. We had to switch back to Webpack because JSPM's bundles (even with HTTP2 enabled) were slowing down our time to first render drastically. About an extra 2 seconds on 3g mobile compared to the same site with webpack. We're an edge case though, for most sites JSPM will work fine, and if it's currently working for you don't switch over. Switching over was a pain so I don't recommend switching unless you absolutely have to. I would not recommend using it for new projects though.