While the Meteor community was hacking projects this weekend, I was also hacking but the Meteor build system . You can now seamlessly integrate Webpack within your Meteor application.
Why should you do this?
- Hot-reload with React (probably doable with others): The amazingly fast hot-reload with no page refresh. This is a killer feature. Works with Cordova!
- ES6 modules: this will be introduced in Meteor in the future but with Webpack, you can be in the future!
- Bundle your assets for you when you require them
- Code splitting: you can actually make people only load a part of your application and dynamiclly load the rest when they need it. This is actually great for admins and stuff you donāt want everyone to download no matter where they are.
- Support Cordova!
You can configure your Webpack config on the server and on the client by using exactly the same syntax as anyone using Webpack. Obviously, it has been simplified because it needs to be built inside Meteor so it will override a few configs.
You can try it by cloning the kickstart-simple project (simple example for simple app or learn) or the kickstart-hugeapp project (include code splitting, very interesting for big applications).
I think having this inside the Meteor build is a big leap forward. Let me know what you guys are thinking!
@SkinnyGeek1010 @ccorcos @lai @jedwards @imkost @none @mats @brajt @sikanx @timfletcher youāve used the previous verision I would like your opinion on this