Skip to content

Instantly share code, notes, and snippets.

@AndrewRayCode
Created August 6, 2015 18:21
Show Gist options
  • Select an option

  • Save AndrewRayCode/a36cb4c8907ee1c40afe to your computer and use it in GitHub Desktop.

Select an option

Save AndrewRayCode/a36cb4c8907ee1c40afe to your computer and use it in GitHub Desktop.
entry: {
app: [
'webpack-dev-server/client?http://localhost:8080',
'webpack/hot/only-dev-server',
'./app/main.js'
],
vendor: './app/vendor/vendor.js',
editor: './app/vendor/editor.js'
},
...
plugins: [
new webpack.optimize.CommonsChunkPlugin({
name: [ 'vendor', 'editor' ],
filename: '[name].js',
minChunks: Infinity
}),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment