From db246251d776b1295d450e7cd60fc66b248be2cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Romain?= Date: Tue, 28 Nov 2023 10:20:22 +0100 Subject: [PATCH] fix: prevent display log of sass loader warnings (#5004) --- .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, + }, + }, }, ); }