Skip to content

Commit

Permalink
feat: Add ignoreOrder option (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhenkes authored and evilebottnawi committed Jul 15, 2019
1 parent 392c4ae commit 4ad3373
Show file tree
Hide file tree
Showing 16 changed files with 297 additions and 112 deletions.
11 changes: 9 additions & 2 deletions README.md
Expand Up @@ -51,9 +51,10 @@ module.exports = {
plugins: [
new MiniCssExtractPlugin({
// Options similar to the same options in webpackOptions.output
// both options are optional
// all options are optional
filename: '[name].css',
chunkFilename: '[id].css',
ignoreOrder: false, // Enable to remove warnings about conflicting order
}),
],
module: {
Expand Down Expand Up @@ -358,7 +359,13 @@ For long term caching use `filename: "[contenthash].css"`. Optionally add `[name

### Remove Order Warnings

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
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.

```javascript
new MiniCssExtractPlugin({
ignoreOrder: true,
}),
```

### Media Query Plugin

Expand Down

0 comments on commit 4ad3373

Please sign in to comment.