lbwa / set.sh-stale

✍A place which is used to share my programming experiences in Chinese. 一个分享代码经历的地方。
https://set.sh
0 stars 0 forks source link

mini-css-extract-plugin 报错冲突 #30

Open lbwa opened 5 years ago

lbwa commented 5 years ago

报错信息如下:

4C2DABCC-DC5E-4143-8685-0767C39E9192

官方解答在这里

We are trying to generate a CSS file but your codebase has multiple possible orderings for these modules.

官方给出的两种解决方式为:

There are two things that you can do:

Sort your imports to create a consistent order. I must admit that the warning could be improved to point to the locations that need to be changed.

Ignore the warning with stats.warningFilter when the order of these styles doesn't matter. Maybe the eventually add an option to mark order-independent styles directly.