Skip to content

Instantly share code, notes, and snippets.

@glennreyes
Last active January 16, 2019 03:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glennreyes/f30a3ea6e029b063614ac40b19833661 to your computer and use it in GitHub Desktop.
Save glennreyes/f30a3ea6e029b063614ac40b19833661 to your computer and use it in GitHub Desktop.
How to disable Code Splitting in webpack
module.exports = {
module: {
rules: [
{
test: /\.(js|jsx)$/,
loader: require.resolve('babel-loader'),
include: ['src'],
options: {
presets: [
'dynamic-import-node',
'remove-webpack',
],
}
],
},
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment