I removed my webpack.config.js to create 3 different webpack config files, namely webpack.common.js, webpack.prod.js, webpack.dev.js. While with webpack.config.js, the proje