parent
30c963a5f0
commit
61a1c93f0f
89 changed files with 15859 additions and 2 deletions
16
client/webpack.config.prod.js
Normal file
16
client/webpack.config.prod.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
const common = require("./webpack.config.common.js");
|
||||
const merge = require("webpack-merge");
|
||||
const UglifyJS = require("uglifyjs-webpack-plugin");
|
||||
const webpack = require("webpack");
|
||||
|
||||
module.exports = merge(common, {
|
||||
devtool: "source-map",
|
||||
plugins: [
|
||||
new UglifyJS({
|
||||
sourceMap: true
|
||||
}),
|
||||
new webpack.DefinePlugin({
|
||||
"process.env.NODE_ENV": JSON.stringify("production")
|
||||
})
|
||||
]
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue