Ffast-FE icon indicating copy to clipboard operation
Ffast-FE copied to clipboard

run dev 报错 "exceeds the max of "500KB"

Open mengda1027 opened this issue 6 years ago • 1 comments

本地运行项目run dev时报错

Starting dev server... [BABEL] Note: The code generator has deoptimised the styling of "xxxx/Temp/vue/Ffast-FE/node_modules/iview/dist/iview.js" as it exceeds the max of "500KB".

在webpack.base.conf里有三条js处理规则,不知道这两条是什么目的?

     {
        test: /iview\/.*?js$/,
        loader: 'babel-loader'
      },
      {
        test: /\.js$/,
        loader: 'babel-loader',
        exclude: /node_modules/
      },

注销之后run dev正常……

mengda1027 avatar Dec 27 '18 09:12 mengda1027

你看看npm run build会不会报错,如果没报错就可以删掉,这个好像是之前iview更新导致打包异常才加入的

ZhiYiDai avatar Dec 27 '18 10:12 ZhiYiDai