webpack config parameters code example
Example 1: webpack env argument
// webpack.config.js
plugins: [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV === 'production' ? 'production' : 'development')
})
]
Example 2: webpack config example
npm install --save-dev webpack-dev-server