|
@@ -50,6 +50,8 @@ module.exports = {
|
|
qcListCopy:path.resolve(__dirname, 'src/js', 'qcListCopy.js'),
|
|
qcListCopy:path.resolve(__dirname, 'src/js', 'qcListCopy.js'),
|
|
qcListOutHospital:path.resolve(__dirname, 'src/js', 'qcListOutHospital.js'),
|
|
qcListOutHospital:path.resolve(__dirname, 'src/js', 'qcListOutHospital.js'),
|
|
checkControl:path.resolve(__dirname, 'src/js', 'checkControl.js'),
|
|
checkControl:path.resolve(__dirname, 'src/js', 'checkControl.js'),
|
|
|
|
+ uncorrectedCasesStatistics:path.resolve(__dirname, 'src/js', 'uncorrectedCasesStatistics.js'),
|
|
|
|
+ uccDetail:path.resolve(__dirname, 'src/js', 'uccDetail.js'),
|
|
vendor: 'lodash'// 多个页面所需的公共库文件,防止重复打包带入
|
|
vendor: 'lodash'// 多个页面所需的公共库文件,防止重复打包带入
|
|
},
|
|
},
|
|
output: {
|
|
output: {
|
|
@@ -569,6 +571,33 @@ module.exports = {
|
|
collapseWhitespace: true //删除空白符与换行符
|
|
collapseWhitespace: true //删除空白符与换行符
|
|
}
|
|
}
|
|
}),
|
|
}),
|
|
|
|
+ new HtmlWebpackPlugin({
|
|
|
|
+ title: 'uncorrectedCasesStatistics.html', //未整改病历统计
|
|
|
|
+ template: path.resolve(__dirname, 'src/html', 'uncorrectedCasesStatistics.html'),
|
|
|
|
+ filename: 'uncorrectedCasesStatistics.html',
|
|
|
|
+ chunks: ['uncorrectedCasesStatistics', 'vendor', 'common'],
|
|
|
|
+ hash: true, //防止缓存
|
|
|
|
+ inject: true,
|
|
|
|
+ minify: {
|
|
|
|
+ removeAttributeQuotes: true, //压缩 去掉引号
|
|
|
|
+ removeComments: true, //移除HTML中的注释
|
|
|
|
+ collapseWhitespace: true //删除空白符与换行符
|
|
|
|
+ }
|
|
|
|
+ }),
|
|
|
|
+ new HtmlWebpackPlugin({
|
|
|
|
+ title: 'uccDetail.html', //未整改病历统计_缺陷详情
|
|
|
|
+ template: path.resolve(__dirname, 'src/html', 'uccDetail.html'),
|
|
|
|
+ filename: 'uccDetail.html',
|
|
|
|
+ chunks: ['uccDetail', 'vendor', 'common'],
|
|
|
|
+ hash: true, //防止缓存
|
|
|
|
+ inject: true,
|
|
|
|
+ minify: {
|
|
|
|
+ removeAttributeQuotes: true, //压缩 去掉引号
|
|
|
|
+ removeComments: true, //移除HTML中的注释
|
|
|
|
+ collapseWhitespace: true //删除空白符与换行符
|
|
|
|
+ }
|
|
|
|
+ }),
|
|
|
|
+
|
|
new CopyWebpackPlugin([
|
|
new CopyWebpackPlugin([
|
|
{
|
|
{
|
|
from:'src/resource',
|
|
from:'src/resource',
|