From 4a1e0f30ca3a9e0e74529a9f19141429f6609100 Mon Sep 17 00:00:00 2001 From: Sebastien Romain Date: Thu, 23 Nov 2023 14:34:25 +0100 Subject: [PATCH] fix: prevent display log of sass loader warnings --- .changeset/flat-maps-dream.md | 5 +++++ .../config/webpack.config.common.js | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .changeset/flat-maps-dream.md diff --git a/.changeset/flat-maps-dream.md b/.changeset/flat-maps-dream.md new file mode 100644 index 00000000000..0145d2ad2d5 --- /dev/null +++ b/.changeset/flat-maps-dream.md @@ -0,0 +1,5 @@ +--- +'@talend/scripts-config-react-webpack': patch +--- + +fix: prevent display log of lot of warnings related to sass loader diff --git a/tools/scripts-config-react-webpack/config/webpack.config.common.js b/tools/scripts-config-react-webpack/config/webpack.config.common.js index 81c606202bd..f8a1cfd74f5 100644 --- a/tools/scripts-config-react-webpack/config/webpack.config.common.js +++ b/tools/scripts-config-react-webpack/config/webpack.config.common.js @@ -72,7 +72,13 @@ function getSassLoaders(enableModules, sassData, isEnvDevelopmentServe) { { loader: require.resolve('resolve-url-loader'), options: { sourceMap } }, { loader: require.resolve('sass-loader'), - options: { sourceMap, additionalData: sassData }, + options: { + sourceMap, + additionalData: sassData, + sassOptions: { + quietDeps: true, + }, + }, }, ); }