Browse Source

修改样式

zhangxc 6 năm trước cách đây
mục cha
commit
26d49610ff
2 tập tin đã thay đổi với 15 bổ sung0 xóa
  1. 1 0
      src/css/landscape.css
  2. 14 0
      webpack.config.js

+ 1 - 0
src/css/landscape.css

@@ -290,6 +290,7 @@
     margin-bottom: 5px;
   }
   .conditionHintZhiliaoNull {
+    padding-left: 20px;
     display: none;
   }
   .conditionHintAssistLis,

+ 14 - 0
webpack.config.js

@@ -9,6 +9,7 @@ module.exports = {
   entry: {
     landscapePage: path.resolve(__dirname, 'src', 'landscapePage.js'),
     landscape: path.resolve(__dirname, 'src', 'landscape.js'),
+    landscapeMedical: path.resolve(__dirname, 'src/js', 'landscapeMedical.js'),
     index: path.resolve(__dirname, 'src', 'index.js'),
     page: path.resolve(__dirname, 'src', 'page.js'),
     information: path.resolve(__dirname, 'src/js', 'information.js'),
@@ -162,6 +163,19 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
+    new HtmlWebpackPlugin({
+      title: 'landscapeMedical',
+      template: path.resolve(__dirname, 'src/html', 'landscapeMedical.html'),
+      filename: 'landscapeMedical.html',
+      chunks: ['landscape', 'vendor', 'common'],
+      inject: true,
+      hash: true, //防止缓存
+      minify: {
+        removeAttributeQuotes: true, //压缩 去掉引号
+        removeComments: true, //移除HTML中的注释
+        collapseWhitespace: true //删除空白符与换行符
+      }
+    }),
     new webpack.HotModuleReplacementPlugin(),
     new CleanWebpackPlugin()
   ],