Commit 570b6d03 authored by hewenhao's avatar hewenhao

feat: build

parent d8938f18
...@@ -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