diff --git a/PATRONS.md b/PATRONS.md index ca7e77b28..654da0877 100644 --- a/PATRONS.md +++ b/PATRONS.md @@ -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 diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index 1197a1096..8579f8a5c 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -120,6 +120,7 @@ const webpackConfig = merge(baseWebpackConfig, { }), */ // split vendor js into its own file + /* new webpack.optimize.CommonsChunkPlugin({ name: 'vendor', minChunks: (module, count) => { @@ -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'), @@ -170,7 +178,8 @@ const webpackConfig = merge(baseWebpackConfig, { minify: true, stripPrefix: 'dist/' }) - ] + ], + recordsOutputPath: join(config.build.assetsRoot, 'js', 'records.json') }) module.exports = webpackConfig