Skip to content

Commit

Permalink
Set ignoreOrder to true for MiniCssExtractPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkitkkr committed Oct 21, 2022
1 parent 30044b5 commit 15780d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package/environments/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ const getPlugins = () => {
plugins.push(
new MiniCssExtractPlugin({
filename: `css/[name]${hash}.css`,
chunkFilename: `css/[id]${hash}.css`
chunkFilename: `css/[id]${hash}.css`.split(),
// 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.
// Read: https://stackoverflow.com/questions/51971857/mini-css-extract-plugin-warning-in-chunk-chunkname-mini-css-extract-plugin-con
ignoreOrder: true,
})
)
}
Expand Down

0 comments on commit 15780d9

Please sign in to comment.