Skip to content

Commit 4ad3373

Browse files
mjhenkesevilebottnawi
authored andcommitted
feat: Add ignoreOrder option (#422)
1 parent 392c4ae commit 4ad3373

File tree

16 files changed

+297
-112
lines changed

16 files changed

+297
-112
lines changed

Diff for: README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ module.exports = {
5151
plugins: [
5252
new MiniCssExtractPlugin({
5353
// Options similar to the same options in webpackOptions.output
54-
// both options are optional
54+
// all options are optional
5555
filename: '[name].css',
5656
chunkFilename: '[id].css',
57+
ignoreOrder: false, // Enable to remove warnings about conflicting order
5758
}),
5859
],
5960
module: {
@@ -358,7 +359,13 @@ For long term caching use `filename: "[contenthash].css"`. Optionally add `[name
358359

359360
### Remove Order Warnings
360361

361-
If the terminal is getting bloated with chunk order warnings. You can filter by configuring [warningsFilter](https://webpack.js.org/configuration/stats/) withing the webpack stats option
362+
For projects where css ordering has been mitigated through consistent use of scoping or naming conventions, the css order warnings can be disabled by setting the ignoreOrder flag to true for the plugin.
363+
364+
```javascript
365+
new MiniCssExtractPlugin({
366+
ignoreOrder: true,
367+
}),
368+
```
362369

363370
### Media Query Plugin
364371

0 commit comments

Comments
 (0)