From 05e4beb34e65146c050de6a9d95c0c102b0a7b9c Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Wed, 30 Jun 2021 11:33:41 +0200 Subject: [PATCH 1/2] pin @fullhuman/postcss-purgecss to version 3.0 in compat mode We were using @fullhuman/postcss-purgecss ^3.1.3, however this version relies on PostCSS 8 and not PostCSS 7. See: https://github.com/FullHuman/purgecss/releases/tag/v3.1.3 --- package.postcss7.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.postcss7.json b/package.postcss7.json index b6eb6d996b91..e0528f871a02 100644 --- a/package.postcss7.json +++ b/package.postcss7.json @@ -3,7 +3,7 @@ "cssnano": "^4" }, "dependencies": { - "@fullhuman/postcss-purgecss": "^3.1.3", + "@fullhuman/postcss-purgecss": "3.0.0", "autoprefixer": "^9", "postcss": "^7", "postcss-functions": "^3", From 33ae74c7ca21157a3517440e3c5c223987bf8743 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Wed, 30 Jun 2021 11:45:32 +0200 Subject: [PATCH 2/2] pin purgecss to 3.0.0 `@fullhuman/postcss-purgecss` uses `purgecss: ^3.0.0` behind the scenes. Which resolves to `^3.1.0` which requires PostCSS 8 and not PostCSS 7. --- package.postcss7.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.postcss7.json b/package.postcss7.json index e0528f871a02..b1796bb1e995 100644 --- a/package.postcss7.json +++ b/package.postcss7.json @@ -8,6 +8,7 @@ "postcss": "^7", "postcss-functions": "^3", "postcss-js": "^2", - "postcss-nested": "^4" + "postcss-nested": "^4", + "purgecss": "3.0.0" } }