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

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

最直接的解决方案:

针对 webpack 3.8.1 版本的处理方式

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

版权声明:本文为Tyro_java原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。