Skip to content

Instantly share code, notes, and snippets.

@glennreyes
Last active January 16, 2019 03:22
Show Gist options
  • Select an option

  • Save glennreyes/f30a3ea6e029b063614ac40b19833661 to your computer and use it in GitHub Desktop.

Select an option

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