NODE_ENV centos code example
Example 1: set node process production
{
...
"scripts": {
"start": "NODE_ENV=production node ./app"
}
...
}
Example 2: set node process production
plugins: [
new webpack.DefinePlugin({
'process.env.NODE_ENV': '"production"',
})
]