Skip to content
Snippets Groups Projects
Commit ba865db3 authored by Mike Greiling's avatar Mike Greiling
Browse files

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

parent 7371f6cd
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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"))
 
Loading
Loading
Loading
Loading
@@ -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'],
}),
],
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment