Fix "The code generator has deoptimised the styling of [some file]" as it exceeds the max of "500KB"

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Tyro_java/article/details/85085838

针对这一问题,不同版本的webpack 处理方式不同

最直接的解决方案:

针对 webpack 3.8.1 版本的处理方式

// Process JS with Babel.
{
  test: /\.(js|jsx|mjs)$/,
  include: paths.appSrc,
  loader: require.resolve('babel-loader'),
  options: {
    compact: true,
  }
}

猜你喜欢

转载自blog.csdn.net/Tyro_java/article/details/85085838