|
@@ -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',
|