dev(client): disable webpack console warnings (#62873)

Co-authored-by: Mrugesh Mohapatra <noreply@mrugesh.dev>
This commit is contained in:
Shaun Hamilton
2025-10-17 18:05:42 +02:00
committed by GitHub
parent ed2013e808
commit 16cbb4c24d
2 changed files with 13 additions and 3 deletions
+11 -1
View File
@@ -261,7 +261,17 @@ exports.onCreateWebpackConfig = ({ stage, actions }) => {
process: require.resolve('process/browser')
}
},
plugins: newPlugins
plugins: newPlugins,
ignoreWarnings: [
warning => {
if (warning instanceof Error) {
if (warning.message.includes('mini-css-extract-plugin')) {
return true;
}
}
return false;
}
]
});
};
+2 -2
View File
@@ -20,7 +20,7 @@
"main": "none",
"scripts": {
"prebuild": "pnpm run common-setup && pnpm run build:scripts --env production",
"build": "NODE_OPTIONS=\"--max-old-space-size=7168\" gatsby build --prefix-paths",
"build": "NODE_OPTIONS=\"--max-old-space-size=7168 --no-deprecation\" gatsby build --prefix-paths",
"build:scripts": "pnpm run -F=browser-scripts build",
"clean": "gatsby clean",
"common-setup": "pnpm -w run create:shared && pnpm run create:env && pnpm run create:trending && pnpm run create:search-placeholder",
@@ -28,7 +28,7 @@
"create:trending": "tsx ./tools/download-trending.ts",
"create:search-placeholder": "tsx ./tools/generate-search-placeholder",
"predevelop": "pnpm run common-setup && pnpm run build:scripts --env development",
"develop": "NODE_OPTIONS=\"--max-old-space-size=7168\" gatsby develop --inspect=9230",
"develop": "NODE_OPTIONS=\"--max-old-space-size=7168 --no-deprecation\" gatsby develop --inspect=9230",
"lint": "tsx ./i18n/schema-validation.ts",
"serve": "gatsby serve -p 8000",
"serve-ci": "serve -l 8000 -c serve.json public",