From d74a67913ffa2008b8a516d4766592b92785b506 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Sun, 11 Dec 2022 20:33:57 +0100 Subject: [PATCH] Fix purgecss being too eager for Tailwind https://stackoverflow.com/questions/65554596/purgecss-and-tailwind-css-how-to-preserve-responsive-classes-using-the-command --- src/designer/elsa-workflows-designer/stencil.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/designer/elsa-workflows-designer/stencil.config.ts b/src/designer/elsa-workflows-designer/stencil.config.ts index 7433146cf..6b150ea1a 100644 --- a/src/designer/elsa-workflows-designer/stencil.config.ts +++ b/src/designer/elsa-workflows-designer/stencil.config.ts @@ -30,7 +30,10 @@ export const config: Config = { plugins: [ tailwindcss(), autoprefixer(), - ...(dev ? [] : [purgecss({content: ['./**/*.tsx', './**/*.ts']})]) + ...(dev ? [] : [purgecss({ + content: ['./**/*.tsx', './**/*.ts'], + defaultExtractor: (content) => content.match(/[\w-/:.]+(?