Skip to content

Commit 8176cf6

Browse files
committed
fix ordering
Signed-off-by: Shivam Gupta <sudhanshudasgupta9@gmail.com>
1 parent c18625e commit 8176cf6

4 files changed

Lines changed: 18 additions & 0 deletions

File tree

gatsby-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ module.exports = {
1717
},
1818
trailingSlash: "never",
1919
plugins: [
20+
"@mediacurrent/gatsby-plugin-silence-css-order-warning",
2021
{
2122
resolve: "gatsby-plugin-webpack-bundle-analyser-v2",
2223
options: {

gatsby-node.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const path = require("path");
99
const slugify = require("./src/utils/slugify");
1010
const { paginate } = require("gatsby-awesome-pagination");
1111
const { createFilePath } = require("gatsby-source-filesystem");
12+
const FilterWarningsPlugin = require("webpack-filter-warnings-plugin");
1213
const config = require("./gatsby-config");
1314
const {
1415
componentsData,
@@ -987,6 +988,14 @@ exports.onCreateWebpackConfig = ({ actions, stage, getConfig }) => {
987988
},
988989
},
989990
});
991+
actions.setWebpackConfig({
992+
plugins: [
993+
new FilterWarningsPlugin({
994+
exclude:
995+
/mini-css-extract-plugin[^]*Conflicting order. Following module has been added:/,
996+
}),
997+
],
998+
});
990999

9911000
if (stage === "build-javascript") {
9921001
const config = getConfig();

package-lock.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"@loadable/component": "^5.16.4",
3939
"@mdx-js/mdx": "1.6.22",
4040
"@mdx-js/react": "1.6.22",
41+
"@mediacurrent/gatsby-plugin-silence-css-order-warning": "^1.0.0",
4142
"@mui/icons-material": "^5.16.4",
4243
"@mui/material": "^5.15.11",
4344
"@react-icons/all-files": "^4.1.0",

0 commit comments

Comments
 (0)