From 4a2a4272ba155ec8620b022abfab16c0332d8e39 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 22 Jan 2022 11:09:59 -0600 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=F0=9F=90=9B=20postcss=20/=20customi?= =?UTF-8?q?ze-cra=20compatibility?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref https://github.com/arackaf/customize-cra/issues/315\#issuecomment-1017081592 --- web/config-overrides.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/web/config-overrides.js b/web/config-overrides.js index 64fc69216..532417356 100644 --- a/web/config-overrides.js +++ b/web/config-overrides.js @@ -1,5 +1,10 @@ const { getThemeVariables } = require("antd/dist/theme"); -const { override, fixBabelImports, addLessLoader } = require("customize-cra"); +const { + override, + fixBabelImports, + addLessLoader, + adjustStyleLoaders, +} = require("customize-cra"); module.exports = override( fixBabelImports("import", { @@ -17,5 +22,9 @@ module.exports = override( }), }, }, + }), + adjustStyleLoaders(({ use: [, , postcss] }) => { + const postcssOptions = postcss.options; + postcss.options = { postcssOptions }; }) );