|
@@ -24,6 +24,7 @@ const config = {
|
|
|
entry: {
|
|
|
common: path.resolve(__dirname, 'src/common.js'),
|
|
|
index: path.resolve(__dirname, 'src/index.js'),
|
|
|
+ leave: path.resolve(__dirname, 'src/leave.js'),
|
|
|
sponsors: path.resolve(__dirname, 'src/sponsors.js'),
|
|
|
},
|
|
|
|
|
@@ -118,6 +119,13 @@ const config = {
|
|
|
chunks: ['common', 'index'],
|
|
|
publicPath: './'
|
|
|
}),
|
|
|
+ new HtmlWebpackPlugin({
|
|
|
+ inject: 'body',
|
|
|
+ template: path.resolve(__dirname, 'src/html/leave.html'), //指定模板文件
|
|
|
+ filename: 'leave.html',
|
|
|
+ chunks: ['common', 'leave'],
|
|
|
+ publicPath: './'
|
|
|
+ }),
|
|
|
new HtmlWebpackPlugin({
|
|
|
inject: 'body',
|
|
|
template: path.resolve(__dirname, 'src/html/sponsors.html'), //指定模板文件
|