From e515a6325c57c6af599c1ad16ffae037cebf6135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mirek=20D=C5=82ugosz?= Date: Sun, 3 Apr 2022 11:37:17 +0200 Subject: [PATCH] Update postcss.config.js - purgecss renamed `whitelist` to `safelist` and collapsed two options into one (see their issues #428 and #439) - current regexp was missing `vm` class --- postcss.config.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/postcss.config.js b/postcss.config.js index 51ffbc1..77d9884 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -10,13 +10,12 @@ module.exports = { const contentWithoutStyleBlocks = content.replace(//gi, '') return contentWithoutStyleBlocks.match(/[A-Za-z0-9-_/:]*[A-Za-z0-9-_/]+/g) || [] }, - whitelist: [], - whitelistPatterns: [ + safelist: [ /-(leave|enter|appear)(|-(to|from|active))$/, /^(?!(|.*?:)cursor-move).+-move$/, /^router-link(|-exact)-active$/, /data-v-.*/, - /vm-.*/ + /^vm(-.*)?$/ ] }) ]