mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-07 00:46:44 +08:00
Compare commits
2 Commits
origin/rel
...
hotfix/【20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c19227e72c | ||
|
|
e56058ff76 |
@@ -59,6 +59,7 @@
|
||||
"node-sass": "^4.14.1",
|
||||
"postcss-px-to-viewport": "^1.1.1",
|
||||
"sass-loader": "^7.3.1",
|
||||
"terser-webpack-plugin": "^4.2.3",
|
||||
"vue-template-compiler": "^2.6.10"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
const autoprefixer = require('autoprefixer')
|
||||
const pxtoviewport = require('postcss-px-to-viewport')
|
||||
const TerserPlugin = require("terser-webpack-plugin");
|
||||
|
||||
module.exports = {
|
||||
publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
|
||||
@@ -41,5 +42,19 @@ module.exports = {
|
||||
},
|
||||
devServer: {
|
||||
port: 8082
|
||||
}
|
||||
},
|
||||
configureWebpack: {
|
||||
optimization: {
|
||||
minimizer: [
|
||||
new TerserPlugin({
|
||||
terserOptions: {
|
||||
output: {
|
||||
comments: false
|
||||
}
|
||||
},
|
||||
extractComments: false
|
||||
})
|
||||
]
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user