Created
October 21, 2017 17:09
-
-
Save glennreyes/f538a369db0c449b681e86ef7f86a254 to your computer and use it in GitHub Desktop.
Code Splitting disabled on server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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