3 ms·
What is the difference from Webpack 1? This tutorial seems identical to every other Webpack getting started I've read.
by jitl 10y ago
What is the difference from Webpack 1? This tutorial seems identical to every other Webpack getting started I've read.
- igvadaimon 10y agoI guess most of the changes are 'under the hood', but there are some breaking changes in configuration as well. "loaders" => "rules" etc. http://javascriptplayground.com/blog/2016/10/moving-to-webpack-2/ http://javascriptplayground.com/blog/2016/10/moving-to-webpa...
- colinramsay 10y agoThere's a list from the start of the year here: https://gist.github.com/sokra/27b24881210b56bbaff7 https://gist.github.com/sokra/27b24881210b56bbaff7
- thelarkinn 10y agoId recommend our newer upgrade guide. https://webpack.js.org/how-to/upgrade-from-webpack-1/ https://webpack.js.org/how-to/upgrade-from-webpack-1/
- thelarkinn 10y agoId recommend our newer upgrade guide. https://webpack.js.org/how-to/upgrade-from-webpack-1/ https://webpack.js.org/how-to/upgrade-from-webpack-1/
- deleted 10y ago[deleted]
- k__ 10y agoI think the biggest addition is ES2015 modules. Webpack now understands them without the need to convert them to commonjs/amd. import works statically (before the JS is run), which allows webpack to make some optimizations. (System.import() is used for dynamic (runtime) imports)
- vladimir-y 10y agoThere is also a config validation, which is a good thing.