build: disable sass warnings from dependencies
The @material* dependencies give a fair amount of warnings since they
are using deprecated features. The library is now maintenance mode.
Since we cannot do anything about it, we have disabled showing warnings
for external dependencies, even though these deprecations might affect
us in the future.
Change-Id: I6a6a636c5f26e45f80fb2f40e51880b8e315c45c
diff --git a/webpack.config.js b/webpack.config.js
index 3ac095c..8f55a27 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -106,7 +106,7 @@
const overridenLocalePaths =
localeOverrides.map(l => '**/_locales/' + l.pontoonLocale);
- let preprocessorLoader = {
+ const preprocessorLoader = {
loader: 'webpack-preprocessor-loader',
options: {
params: {
@@ -117,6 +117,14 @@
},
};
+ const sassLoaderOptions = {
+ // Prefer `dart-sass`
+ implementation: require('sass'),
+ sassOptions: {
+ quietDeps: true,
+ },
+ };
+
return {
entry,
output: {
@@ -212,10 +220,7 @@
'css-loader',
{
loader: 'sass-loader',
- options: {
- // Prefer `dart-sass`
- implementation: require('sass'),
- },
+ options: sassLoaderOptions,
},
],
},
@@ -226,10 +231,7 @@
'css-loader',
{
loader: 'sass-loader',
- options: {
- // Prefer `dart-sass`
- implementation: require('sass'),
- },
+ options: sassLoaderOptions,
},
],
},
@@ -239,10 +241,7 @@
'css-loader',
{
loader: 'sass-loader',
- options: {
- // Prefer `dart-sass`
- implementation: require('sass'),
- },
+ options: sassLoaderOptions,
},
],
},