Skip to content

Instantly share code, notes, and snippets.

@dtothefp
Created September 5, 2015 19:33
Show Gist options
  • Save dtothefp/35a5233ac186c5cd8dc9 to your computer and use it in GitHub Desktop.
Save dtothefp/35a5233ac186c5cd8dc9 to your computer and use it in GitHub Desktop.
export default {
entry: {
'bundle-with-hbs': './src/index.js',
'no-hbs': './src/a.js',
'with-hbs': './src/b.js'
},
output: {
filename: '[name].js',
path: `${__dirname}/dist`
},
module: {
loaders: [ { test: /\.hbs$/, loader: 'handlebars-loader' } ]
},
plugins: [
new CommonsChunkPlugin(
{ name: 'commons', filename: 'commons.js', minChunks: 0 }
)
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment