webpack -p
// 相当于
webpack --optimize-minimize --define process.env.NODE_ENV="'production'"
执行以下步骤
- Minification using UglifyJsPlugin - 使用UglifyJsPlugin进行缩小
- Runs the LoaderOptionsPlugin, see its documentation - 运行LoaderOptionsPlugin
- Sets the Node environment variable - 设置Node环境变量