morphone1995 4 years ago
parent
commit
69af19be2c
1 changed files with 14 additions and 1 deletions
  1. 14 1
      webpack.config.js

+ 14 - 1
webpack.config.js

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