Quellcode durchsuchen

各页面文件新建

zhouna vor 5 Jahren
Ursprung
Commit
0a63dcace1

+ 0 - 0
src/html/console.html


+ 0 - 0
src/html/itemManager.html


+ 0 - 0
src/html/login.html


+ 0 - 0
src/html/moduleManager.html


+ 0 - 0
src/html/qcList.html


+ 0 - 0
src/html/qcScore.html


+ 0 - 0
src/html/statistics.html


BIN
src/images/logo.png


+ 91 - 0
webpack.config.js

@@ -35,6 +35,97 @@ module.exports = {
         collapseWhitespace: true //删除空白符与换行符
       }
     }),
+    new HtmlWebpackPlugin({
+      title: 'console.html',
+      template: path.resolve(__dirname, 'src/html', 'console.html'),
+      filename: 'console.html',
+      chunks: ['index', 'vendor', 'common'],
+      hash: true, //防止缓存
+      inject: true,
+      minify: {
+        removeAttributeQuotes: true, //压缩 去掉引号
+        removeComments: true, //移除HTML中的注释
+        collapseWhitespace: true //删除空白符与换行符
+      }
+    }),
+    new HtmlWebpackPlugin({
+      title: 'itemManager.html',
+      template: path.resolve(__dirname, 'src/html', 'itemManager.html'),
+      filename: 'itemManager.html',
+      chunks: ['index', 'vendor', 'common'],
+      hash: true, //防止缓存
+      inject: true,
+      minify: {
+        removeAttributeQuotes: true, //压缩 去掉引号
+        removeComments: true, //移除HTML中的注释
+        collapseWhitespace: true //删除空白符与换行符
+      }
+    }),
+    new HtmlWebpackPlugin({
+      title: 'moduleManager.html',
+      template: path.resolve(__dirname, 'src/html', 'moduleManager.html'),
+      filename: 'moduleManager.html',
+      chunks: ['index', 'vendor', 'common'],
+      hash: true, //防止缓存
+      inject: true,
+      minify: {
+        removeAttributeQuotes: true, //压缩 去掉引号
+        removeComments: true, //移除HTML中的注释
+        collapseWhitespace: true //删除空白符与换行符
+      }
+    }),
+    new HtmlWebpackPlugin({
+      title: 'login.html',
+      template: path.resolve(__dirname, 'src/html', 'login.html'),
+      filename: 'login.html',
+      chunks: ['index', 'vendor', 'common'],
+      hash: true, //防止缓存
+      inject: true,
+      minify: {
+        removeAttributeQuotes: true, //压缩 去掉引号
+        removeComments: true, //移除HTML中的注释
+        collapseWhitespace: true //删除空白符与换行符
+      }
+    }),
+    new HtmlWebpackPlugin({
+      title: 'qcList.html',
+      template: path.resolve(__dirname, 'src/html', 'qcList.html'),
+      filename: 'qcList.html',
+      chunks: ['index', 'vendor', 'common'],
+      hash: true, //防止缓存
+      inject: true,
+      minify: {
+        removeAttributeQuotes: true, //压缩 去掉引号
+        removeComments: true, //移除HTML中的注释
+        collapseWhitespace: true //删除空白符与换行符
+      }
+    }),
+    new HtmlWebpackPlugin({
+      title: 'qcScore.html',
+      template: path.resolve(__dirname, 'src/html', 'qcScore.html'),
+      filename: 'qcScore.html',
+      chunks: ['index', 'vendor', 'common'],
+      hash: true, //防止缓存
+      inject: true,
+      minify: {
+        removeAttributeQuotes: true, //压缩 去掉引号
+        removeComments: true, //移除HTML中的注释
+        collapseWhitespace: true //删除空白符与换行符
+      }
+    }),
+    new HtmlWebpackPlugin({
+      title: 'statistics.html',
+      template: path.resolve(__dirname, 'src/html', 'statistics.html'),
+      filename: 'statistics.html',
+      chunks: ['index', 'vendor', 'common'],
+      hash: true, //防止缓存
+      inject: true,
+      minify: {
+        removeAttributeQuotes: true, //压缩 去掉引号
+        removeComments: true, //移除HTML中的注释
+        collapseWhitespace: true //删除空白符与换行符
+      }
+    }),
     new CopyWebpackPlugin([
       {
         from:'src/resource',