Skip to content

Instantly share code, notes, and snippets.

@glennreyes
Created October 21, 2017 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glennreyes/f538a369db0c449b681e86ef7f86a254 to your computer and use it in GitHub Desktop.
Save glennreyes/f538a369db0c449b681e86ef7f86a254 to your computer and use it in GitHub Desktop.
Code Splitting disabled on server
module.exports = {
modify: (config, { target }) => {
if (target === 'node') {
return {
...config,
plugins: [
...config.plugins,
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
}),
],
};
}
return config;
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment