Skip to content
This repository was archived by the owner on Jun 6, 2021. It is now read-only.

Commit bccf0f6

Browse files
committed
Don't minify index.html
1 parent 9c5c8d4 commit bccf0f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vue.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ module.exports = {
6262

6363
config.plugin('html').tap((args) => {
6464
args[0].template = path.join(__dirname, 'index.html');
65+
args[0].minify = false;
6566
return args;
6667
});
6768

@@ -87,6 +88,7 @@ module.exports = {
8788
config.module
8889
.rule('html')
8990
.test(/\.html$/)
91+
.exclude.add(path.join(__dirname, 'index.html')).end()
9092
.use('html-loader')
9193
.loader('html-loader');
9294

0 commit comments

Comments
 (0)