Commit d87ea504 authored by wykolor's avatar wykolor

Merge branch 'feature/2021_03_12_bonus' of dev.jiuaoedu.com:wykolor/mall-webview…

Merge branch 'feature/2021_03_12_bonus' of dev.jiuaoedu.com:wykolor/mall-webview into feature/2021_03_12_bonus
parents 54d7dab0 033d616d
...@@ -31,6 +31,11 @@ module.exports = { ...@@ -31,6 +31,11 @@ module.exports = {
} }
}, },
chainWebpack: config => { chainWebpack: config => {
config.plugin(`html`).tap(args => {
const minify = args[0].minify;
args[0].minify = minify ? { ...minify, minifyJS: true } : minify;
return args;
});
config.module config.module
.rule("ts") .rule("ts")
.use("ts-loader") .use("ts-loader")
......
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