From 9cf35ab19929504cf7bf23b24a7ef206c5616c81 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 22 Apr 2021 13:05:02 +0100 Subject: [PATCH] Disable `postcss-calc`'s noisy `warnWhenCannotResolve` option While it sounds like a useful warning at first, it turns out the warnings it prints are ones we're unlike to ever act on, such as adding percentages and pixels, which seem fine to have. This resets to default behaviour, which leaves the warning off. --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 57b1e4d285..fd4c4e49de 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -243,7 +243,7 @@ module.exports = (env, argv) => { require("postcss-easings")(), require("postcss-strip-inline-comments")(), require("postcss-hexrgba")(), - require("postcss-calc")({warnWhenCannotResolve: true}), + require("postcss-calc")(), // It's important that this plugin is last otherwise we end // up with broken CSS.