Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Commit

Permalink
chore: test run aggressive splitting vs common chunking
Browse files Browse the repository at this point in the history
  • Loading branch information
wopian committed Dec 24, 2017
1 parent 7e8ba94 commit c1c8d17
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PATRONS.md
Expand Up @@ -3,7 +3,7 @@
Hibari is a MIT-licensed open source project. Its ongoing development is made possible entirely thanks to the support by these awesome supporters. If you'd like to join them, consider:

- [Becoming a Patron on Patreon][PATREON]
- [Making a one-time donation via Paypal][PAYPAL]
- [Making a one-time donation via PayPal][PAYPAL]

[PATREON]:https://www.patreon.com/wopian
[PAYPAL]:https://paypal.me/wopian
Expand Down
11 changes: 10 additions & 1 deletion build/webpack.prod.conf.js
Expand Up @@ -120,6 +120,7 @@ const webpackConfig = merge(baseWebpackConfig, {
}),
*/
// split vendor js into its own file
/*
new webpack.optimize.CommonsChunkPlugin({
name: 'vendor',
minChunks: (module, count) => {
Expand All @@ -132,12 +133,19 @@ const webpackConfig = merge(baseWebpackConfig, {
)
}
}),
*/
// extract webpack runtime and module manifest to its own file in order to
// prevent vendor hash from being updated whenever app bundle is updated
/*
new webpack.optimize.CommonsChunkPlugin({
name: 'manifest',
chunks: ['vendor']
}),
*/
new webpack.optimize.AggressiveSplittingPlugin({
minSize: 30000,
maxSize: 50000
}),
new CopyWebpackPlugin([
{
from: resolve(__dirname, '../static'),
Expand Down Expand Up @@ -170,7 +178,8 @@ const webpackConfig = merge(baseWebpackConfig, {
minify: true,
stripPrefix: 'dist/'
})
]
],
recordsOutputPath: join(config.build.assetsRoot, 'js', 'records.json')
})

module.exports = webpackConfig

0 comments on commit c1c8d17

Please sign in to comment.