refactor: 按需加载

This commit is contained in:
xiaojunnuo
2021-02-09 17:19:00 +08:00
parent 61de5422bf
commit a9b6e87249
6 changed files with 118 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
module.exports = {
pages: {
index: {
entry: 'src/main.js',
// template 中的 title 标签需要是 <title><%= htmlWebpackPlugin.options.title %></title>
title: 'Cert-D'
}
@@ -11,5 +12,12 @@ module.exports = {
target: 'http://localhost:3000/'
}
}
},
css: {
loaderOptions: {
less: {
javascriptEnabled: true
}
}
}
}