!18 update ant-design-vue-jeecg/vue.config.js.
Merge pull request !18 from 光速蜗牛/N/A
This commit is contained in:
@@ -38,7 +38,7 @@ module.exports = {
|
||||
//生产环境,开启js\css压缩
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
config.plugin('compressionPlugin').use(new CompressionPlugin({
|
||||
test: /\.js$|.\css|.\less/, // 匹配文件名
|
||||
test: /\.(js|css|less)$/, // 匹配文件名
|
||||
threshold: 10240, // 对超过10k的数据压缩
|
||||
deleteOriginalAssets: false // 不删除源文件
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user