Skip to content

Instantly share code, notes, and snippets.

@cezarneaga
Created February 27, 2018 18:33
Show Gist options
  • Save cezarneaga/cddb46d38a5d0e416db9b7abe99e2d62 to your computer and use it in GitHub Desktop.
Save cezarneaga/cddb46d38a5d0e416db9b7abe99e2d62 to your computer and use it in GitHub Desktop.
const path = require('path')
module.exports = {
entry: {
subdomains: './src/index.js',
},
optimization: {
occurrenceOrder: true,
splitChunks: {
cacheGroups: {
vendor: {
test: /[\\/]node_modules[\\/]/,
name: 'vendor',
chunks: 'initial',
priority: 10,
enforce: true,
},
},
},
},
output: {
path: path.join(__dirname, '../../../../static/js/react/'),
filename: '[name].min.js',
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment