提交 ecc7a3d7 编写于 作者: L laiwenbiao

config

上级 baccda9d
......@@ -2,7 +2,6 @@ const pkg = require('./package')
const config = require('./config/conf')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
let plugins = ['transform-remove-console ']
module.exports = {
mode: 'universal',
......@@ -95,8 +94,20 @@ module.exports = {
/*
** You can extend webpack config here
*/
label: {
'plugins': plugins
html: {
minify: {
removeComments: true,
minifyCSS: true,
minifyJS: {
compress: {
warnings: true,
drop_console: true
},
sourceMap: true,
cache: true,
parallel: true
}
}
},
extend(config, ctx) {
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册