webpack css 报错 Cannot read property call of undefined

解决方案如下 ,https://doc.webpack-china.org/plugins/extract-text-webpack-plugin/

new ExtractTextPlugin({
    filename:  (getPath) => {
      return getPath('css/[name].css').replace('css/js', 'css');
    },
    allChunks: true
  })

你可能感兴趣的:(webpack css 报错 Cannot read property call of undefined)