From 895e18ccdaaad2eab58b62af0cfcad04cdbdc9af Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Tue, 8 Dec 2020 18:34:03 +0300 Subject: [PATCH] fix(v2): do not treat at-rules during CSS minification --- packages/docusaurus/src/webpack/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/docusaurus/src/webpack/utils.ts b/packages/docusaurus/src/webpack/utils.ts index a30faeca92d6..58f63c4fbae3 100644 --- a/packages/docusaurus/src/webpack/utils.ts +++ b/packages/docusaurus/src/webpack/utils.ts @@ -440,6 +440,7 @@ export function getMinimizer(useSimpleCssMinifier = false): Plugin[] { 2: { all: true, restructureRules: true, + removeUnusedAtRules: false, }, }, },