From fa8eb70833dbea7635a8eff4250747586f7a6f1e Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Sat, 11 Jan 2025 08:10:52 +0100 Subject: [PATCH 1/2] Fix purge settings --- config/postcss.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/postcss.config.js b/config/postcss.config.js index 4efd9591..75619a06 100644 --- a/config/postcss.config.js +++ b/config/postcss.config.js @@ -10,7 +10,7 @@ const purgecss = require('@fullhuman/postcss-purgecss')({ const els = JSON.parse(content).htmlElements return [...(els.tags || []), ...(els.classes || []), ...(els.ids || [])] }, - dynamicAttributes: ['data-bs-theme'], + dynamicAttributes: ['data-bs-theme', 'data-bs-theme-animate'], safelist: ['was-validated', ...whitelister([ './assets/scss/theme/theme.scss', From 55b4d180f19b2198b31b384619848e3b9589ac38 Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Sat, 11 Jan 2025 08:11:43 +0100 Subject: [PATCH 2/2] Lock purgecss version --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7ef5f8b8..f51b7ccb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.15.0", "license": "MIT", "devDependencies": { - "@fullhuman/postcss-purgecss": "^6.0.0", + "@fullhuman/postcss-purgecss": "~6.0.0", "@gethinode/netlify-plugin-dartsass": "^0.3.0", "autoprefixer": "^10.4.20", "cpy-cli": "^5.0.0", diff --git a/package.json b/package.json index 5a3564a4..6da1479e 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ }, "homepage": "https://gethinode.com", "devDependencies": { - "@fullhuman/postcss-purgecss": "^6.0.0", + "@fullhuman/postcss-purgecss": "~6.0.0", "@gethinode/netlify-plugin-dartsass": "^0.3.0", "autoprefixer": "^10.4.20", "cpy-cli": "^5.0.0",