Skip to content

Commit 0e8d8d5

Browse files
committed
filter the annoying warning
1 parent 0248f78 commit 0e8d8d5

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

gatsby-node.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ exports.createSchemaCustomization = ({ actions }) => {
573573
`;
574574
createTypes(typeDefs);
575575
};
576-
576+
const FilterWarningsPlugin = require('webpack-filter-warnings-plugin');
577577
exports.onCreateWebpackConfig = ({ actions, stage, loaders, plugins }) => {
578578
actions.setWebpackConfig({
579579
resolve: {
@@ -598,6 +598,12 @@ exports.onCreateWebpackConfig = ({ actions, stage, loaders, plugins }) => {
598598
},
599599
],
600600
},
601+
plugins: [
602+
new FilterWarningsPlugin({
603+
exclude:
604+
/mini-css-extract-plugin[^]*Conflicting order. Following module has been added:/,
605+
}),
606+
],
601607
});
602608
if (stage === 'build-javascript' || stage === 'develop') {
603609
actions.setWebpackConfig({

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
"typescript": "^4.7.4",
113113
"unified": "9.2.2",
114114
"uuid": "^8.3.2",
115+
"webpack-filter-warnings-plugin": "^1.2.1",
115116
"worker-loader": "^3.0.8",
116117
"xdm": "1.12.2"
117118
},

src/components/markdown/ProblemsList/ProblemsListItem.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import styled, { css } from 'styled-components';
33
import tw from 'twin.macro';
44
import { olympiads, ProblemInfo, probSources } from '../../../models/problem';
55
import { UsacoTableProgress } from '../../Dashboard/DashboardProgress';
6-
import TextTooltip from '../../Tooltip/TextTooltip';
76
import Tooltip from '../../Tooltip/Tooltip';
7+
import TextTooltip from '../../Tooltip/TextTooltip';
88
import ProblemsListItemDropdown from './ProblemsListItemDropdown';
99
import ProblemStatusCheckbox from './ProblemStatusCheckbox';
1010
import DifficultyBox from '../../DifficultyBox';

yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -23982,7 +23982,7 @@ webpack-dev-middleware@^4.1.0, webpack-dev-middleware@^4.3.0:
2398223982

2398323983
webpack-filter-warnings-plugin@^1.2.1:
2398423984
version "1.2.1"
23985-
resolved "https://registry.npmjs.org/webpack-filter-warnings-plugin/-/webpack-filter-warnings-plugin-1.2.1.tgz"
23985+
resolved "https://registry.yarnpkg.com/webpack-filter-warnings-plugin/-/webpack-filter-warnings-plugin-1.2.1.tgz#dc61521cf4f9b4a336fbc89108a75ae1da951cdb"
2398623986
integrity sha512-Ez6ytc9IseDMLPo0qCuNNYzgtUl8NovOqjIq4uAU8LTD4uoa1w1KpZyyzFtLTEMZpkkOkLfL9eN+KGYdk1Qtwg==
2398723987

2398823988
webpack-hot-middleware@^2.25.1:

0 commit comments

Comments
 (0)