PatrickJS/NG6-todomvc-starter

Wrong CommonsChunkPlugin minChunks argument

andrewMuntyan opened this issue · 0 comments

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')
};