Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

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

Open
lbwa opened this issue Apr 15, 2019 · 0 comments
Open

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

lbwa opened this issue Apr 15, 2019 · 0 comments
Assignees
Labels
Webpack plugins Webpack plugins

Comments

@lbwa
Copy link
Owner

lbwa commented Apr 15, 2019

报错信息如下:

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.

@lbwa lbwa self-assigned this Apr 15, 2019
@lbwa lbwa added the Webpack plugins Webpack plugins label Apr 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Webpack plugins Webpack plugins
Projects
None yet
Development

No branches or pull requests

1 participant