morphone1995 4 anos atrás
pai
commit
841815943c
1 arquivos alterados com 29 adições e 0 exclusões
  1. 29 0
      webpack.config.js

+ 29 - 0
webpack.config.js

@@ -50,6 +50,8 @@ module.exports = {
     qcListCopy:path.resolve(__dirname, 'src/js', 'qcListCopy.js'),
     qcListOutHospital:path.resolve(__dirname, 'src/js', 'qcListOutHospital.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'// 多个页面所需的公共库文件,防止重复打包带入
   },
   output: {
@@ -569,6 +571,33 @@ module.exports = {
         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([
       {
         from:'src/resource',