Cognizant-CDE-Australia / generator-confit

Build-tool generator for current and future web.
https://odecee.github.io/generator-confit
Other
29 stars 3 forks source link

Upgrade to webpack 2 #86

Closed Nighthawk14 closed 7 years ago

Nighthawk14 commented 7 years ago

Very soon the new major version of webpack will be release with some cool features. You can find new documentation here https://webpack.js.org/. I think they are still waiting on enhancements on this documentation before releasing. The config needs just some small changes to be compatible, then we can work out on implementing new features. Webpack 2 is supporting ES2015 modules, that means we don't need babel to compile them and we will have a gain in file size and performances. :)

uglow commented 7 years ago

We still may need for the rest of the ES2015+ features that are not supported in the targeted browsers.

Nighthawk14 commented 7 years ago

@uglow Yes sorry I should have explained more, we should not remove babel completely but just tell him not to transpile modules:

"presets": [
  ["es2015", { "modules": false }]
]