Webpack Env argumento

    // webpack.config.js
    plugins: [
        new webpack.DefinePlugin({
            'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV === 'production' ? 'production' : 'development')
        })
    ]
Busy Batfish