Commit ba865db3 authored by Mike Greiling's avatar Mike Greiling

separate webpack runtime into its own chunk to maintain cacheability of common chunk

parent 7371f6cd
......@@ -28,6 +28,7 @@
= stylesheet_link_tag "application", media: "all"
= stylesheet_link_tag "print", media: "print"
= javascript_include_tag(*webpack_asset_paths("manifest"))
= javascript_include_tag(*webpack_asset_paths("common"))
= javascript_include_tag(*webpack_asset_paths("application"))
......
......@@ -98,10 +98,9 @@ var config = {
new webpack.HashedModuleIdsPlugin() :
new webpack.NamedModulesPlugin(),
// create a common.js bundle to be loaded on every page
// create cacheable common library bundles
new webpack.optimize.CommonsChunkPlugin({
name: 'common',
minChunks: Infinity,
names: ['application', 'common', 'manifest'],
}),
],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment