mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
dev(client): disable webpack console warnings (#62873)
Co-authored-by: Mrugesh Mohapatra <noreply@mrugesh.dev>
This commit is contained in:
+11
-1
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user