Migration to webpack-2

Recently i have done webpack migration for our React redux project to Webpack 2. There are lot of syntax changes was there (Which i will explain below) that needs to be made. Also webpack also provides features like Tree shaking, Caching, dynamic imports etc which leads to change in compilation time and bundle sizes. Let me give little overview of what all major syntax changes for migration and than we will discuss various feature to improve webpack bundling process. 1. Module.loaders changed to module.rules: In webpack 1, modules.loaders got changed to module.rules, loaders names array is changed to use.         …

Continue Reading