Skip to content

Instantly share code, notes, and snippets.

@narendrashetty
Created January 8, 2017 16:43
Show Gist options
  • Save narendrashetty/44a85ecfb86196787325e9ce6aed54a4 to your computer and use it in GitHub Desktop.
Save narendrashetty/44a85ecfb86196787325e9ce6aed54a4 to your computer and use it in GitHub Desktop.
{
'entry': {
'app': './src/index.js',
'vendor': [
'react',
'react-redux',
'redux',
'react-router',
'redux-thunk'
]
},
'output': {
'path': path.resolve(__dirname, './dist'),
'publicPath': '/',
'filename': 'static/js/[name].[hash].js',
'chunkFilename': 'static/js/[name].[hash].js'
},
'plugins': [
new webpack.optimize.CommonsChunkPlugin({
name: ['vendor'],
minChunks: Infinity,
filename: 'static/js/[name].[hash].js',
}),
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment