Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mengda1027 opened this issue Dec 27, 2018 · 1 comment
Open

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

mengda1027 opened this issue Dec 27, 2018 · 1 comment

Comments

@mengda1027
Copy link

本地运行项目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正常……

@ZhiYiDai
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants