|
@@ -10,6 +10,7 @@ const proxyHost = "http://192.168.2.236:5858";
|
|
module.exports = {
|
|
module.exports = {
|
|
entry: {
|
|
entry: {
|
|
index: path.resolve(__dirname, 'src/js', 'index.js'),
|
|
index: path.resolve(__dirname, 'src/js', 'index.js'),
|
|
|
|
+ qcScore:path.resolve(__dirname, 'src/js', 'qcScore.js'),
|
|
vendor: 'lodash'// 多个页面所需的公共库文件,防止重复打包带入
|
|
vendor: 'lodash'// 多个页面所需的公共库文件,防止重复打包带入
|
|
},
|
|
},
|
|
output: {
|
|
output: {
|
|
@@ -104,7 +105,7 @@ module.exports = {
|
|
title: 'qcScore.html',
|
|
title: 'qcScore.html',
|
|
template: path.resolve(__dirname, 'src/html', 'qcScore.html'),
|
|
template: path.resolve(__dirname, 'src/html', 'qcScore.html'),
|
|
filename: 'qcScore.html',
|
|
filename: 'qcScore.html',
|
|
- chunks: ['index', 'vendor', 'common'],
|
|
|
|
|
|
+ chunks: ['index', 'vendor', 'common','qcScore'],
|
|
hash: true, //防止缓存
|
|
hash: true, //防止缓存
|
|
inject: true,
|
|
inject: true,
|
|
minify: {
|
|
minify: {
|