Fix production webpack config for 7ebc84bec0
This commit is contained in:
parent
c54013d954
commit
0f4d712f91
1 changed files with 5 additions and 5 deletions
|
@ -18,7 +18,7 @@ module.exports = Object.assign({}, baseConfig, {
|
|||
}),
|
||||
new ExtractTextPlugin("[name].css"),
|
||||
new webpack.optimize.CommonsChunkPlugin({
|
||||
names: ["vendor", "public", "slide", "locale"],
|
||||
names: ["cover", "index", "pretty", "slide", "vendor"],
|
||||
children: true,
|
||||
async: true,
|
||||
filename: '[name].js',
|
||||
|
@ -38,25 +38,25 @@ module.exports = Object.assign({}, baseConfig, {
|
|||
}),
|
||||
new HtmlWebpackPlugin({
|
||||
template: 'public/views/includes/header.ejs',
|
||||
chunks: ['vendor', 'locale'],
|
||||
chunks: ['vendor', 'cover'],
|
||||
filename: path.join(__dirname, 'public/views/build/cover-header.ejs'),
|
||||
inject: false
|
||||
}),
|
||||
new HtmlWebpackPlugin({
|
||||
template: 'public/views/includes/scripts.ejs',
|
||||
chunks: ['vendor', 'locale'],
|
||||
chunks: ['vendor', 'cover'],
|
||||
filename: path.join(__dirname, 'public/views/build/cover-scripts.ejs'),
|
||||
inject: false
|
||||
}),
|
||||
new HtmlWebpackPlugin({
|
||||
template: 'public/views/includes/header.ejs',
|
||||
chunks: ['vendor', 'public'],
|
||||
chunks: ['vendor', 'pretty'],
|
||||
filename: path.join(__dirname, 'public/views/build/pretty-header.ejs'),
|
||||
inject: false
|
||||
}),
|
||||
new HtmlWebpackPlugin({
|
||||
template: 'public/views/includes/scripts.ejs',
|
||||
chunks: ['vendor', 'public'],
|
||||
chunks: ['vendor', 'pretty'],
|
||||
filename: path.join(__dirname, 'public/views/build/pretty-scripts.ejs'),
|
||||
inject: false
|
||||
}),
|
||||
|
|
Loading…
Reference in a new issue