You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[facebook/create-react-app#2206] It would be beneficial for splitting the js bundle into app and vendor files.
My app code keeps changing but vendor dependencies rarely change. splitting into two files will be a lot beneficial for long term caching.
If I decorate it as below will it plays well with next's automatic code splitting?
module.exports={webpack(config,{ prod }){// pseudo code - modify CommonschunkPlugin behavior and return config.newwebpack.optimize.CommonsChunkPlugin({name: "vendor",// filename: "vendor.js"// (Give the chunk a different name)minChunks: Infinity,// (with more entries, this ensures that no other module// goes into the vendor chunk)})// return config}}
The text was updated successfully, but these errors were encountered:
Feature Request
I'm not quite sure does this play well with next.js concepts. create-react-app repo contains lots of discussion on this topic.
[facebook/create-react-app#2206] It would be beneficial for splitting the js bundle into app and vendor files.
My app code keeps changing but vendor dependencies rarely change. splitting into two files will be a lot beneficial for long term caching.
If I decorate it as below will it plays well with next's automatic code splitting?
The text was updated successfully, but these errors were encountered: