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

[Bug] mini-css-extract-plugin和speed-measure-webpack-plugin冲突 #9897

Closed
topaz-h opened this issue Nov 29, 2022 · 0 comments · Fixed by #9907
Closed

[Bug] mini-css-extract-plugin和speed-measure-webpack-plugin冲突 #9897

topaz-h opened this issue Nov 29, 2022 · 0 comments · Fixed by #9907

Comments

@topaz-h
Copy link

topaz-h commented Nov 29, 2022

What happens?

加了SPEED_MEASURE环境变量:"build": "cross-env SPEED_MEASURE=CONSOLE umi build"
报错:Error: You forgot to add 'mini-css-extract-plugin' plugin (i.e. { plugins: [new MiniCssExtractPlugin()] }),

Mini Showcase Repository(REQUIRED)

Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库

复现地址:https://codesandbox.io/s/umi4-build-less-error-0zmrqe

How To Reproduce

Steps to reproduce the behavior: 1. 2.

pnpm build

Expected behavior 1. 2.

查询后 mini-css-extract-plugin 推荐使用 webpack profile
webpack-contrib/mini-css-extract-plugin#744 (comment)

Context

  • Umi Version: 4.0.33
  • Node Version: 16
  • Platform: m1
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

Successfully merging a pull request may close this issue.

1 participant