I’ve been using Webpack with Meteor recently and it’s been working out rather well. There’s a project here: Meteor-Webpack-React from @jedwards that provides a nice boilerplate to setup the configurations for you. It basically builds a client & server bundle and drops them into the meteor folder.
- No loading order problems (lib folder etc…)
- ES6 Modules
No wrapping libraries! just -
npm install moment --save-dev!
- Easy NPM usagage for client and server (great for React components)
- Works with Blaze example branch
- Hot Patch Functions/Modules that change (not an entire page refresh)
- Fast patching for large projects
- Require CSS/Sass/Less files
- Total control of build process
- Split into many ‘on demand’ chunks instead of 1 large js file
- All meteor packages/files still work… they’re just global
If you’re using Redux then the hot-loading will enable you to change code without losing all of your local state
I made a quick video tutorial on how to run it and to explain how it works (mostly the latter, it’s a 1min install). It’s more less a rough draft as I didn’t have time to edit it: https://www.youtube.com/watch?v=QpixFzvf8U85
and an example of hot-patching (as opposed to a hot full-reload)