Wrong CommonsChunkPlugin minChunks argument
andrewMuntyan opened this issue · 0 comments
andrewMuntyan commented
Hi!
i've noticed minor bug in webpack config (webpack.config.js
)
it should have __dirname 'src'
, not 'client'
new webpack.optimize.CommonsChunkPlugin({
name: 'vendor',
minChunks: function (module, count) {
return module.resource && module.resource.indexOf(path.resolve(__dirname, 'src')) === -1;
}
})
Also there is similar issue in webpack.dev.config.js
file
it should be
config.output = {
filename: '[name].bundle.js',
publicPath: '/',
path: path.resolve(__dirname, 'src')
};