Skip to content

Instantly share code, notes, and snippets.

@yokotak0527
Last active September 20, 2019 15:43
Show Gist options
  • Save yokotak0527/1bd26bfec3d4e31c143a6a90b4723150 to your computer and use it in GitHub Desktop.
Save yokotak0527/1bd26bfec3d4e31c143a6a90b4723150 to your computer and use it in GitHub Desktop.
webpack splitchunk 例
optimization : {
splitChunks : {
name : false,
cacheGroups : {
default : false,
vendors : {
test : /node_modules/,
chunks (chunk) {
return chunk.name !== 'js/preload'
},
filename : 'js/vendor.js',
enforce : true
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment