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