Commit e9bf211b authored by wildfirecode's avatar wildfirecode

1

parent 02312018
...@@ -12,14 +12,16 @@ let config = opts => { ...@@ -12,14 +12,16 @@ let config = opts => {
plugins: [ plugins: [
new UglifyJSPlugin( new UglifyJSPlugin(
{ sourceMap: true } { sourceMap: true }
), new webpack.DefinePlugin({ ),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production') 'process.env.NODE_ENV': JSON.stringify('production')
}) })
], ],
output: { output: {
filename: `./${opts.BUILD_SKIN}/bin-release/output.js`, filename: `./${opts.BUILD_SKIN}/bin-release/output.js`,
path: process.cwd() path: process.cwd()
} },
mode:"production"
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment