From 42638c95ad9c58dd06493ccedf869894eb894ad4 Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Tue, 15 Jun 2021 18:25:22 +0200 Subject: [PATCH] [docs,#571][xs]: tweak tailwind purge to see if we can fix issue on vercel with tailwind (over) purging of styles - see #571. --- docs/tailwind.config.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/tailwind.config.js b/docs/tailwind.config.js index 45e0e788..ec629a9b 100644 --- a/docs/tailwind.config.js +++ b/docs/tailwind.config.js @@ -1,7 +1,18 @@ const defaultTheme = require("tailwindcss/defaultTheme"); module.exports = { - purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'], + mode: 'jit', + // purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'], + purge: [ + "./pages/**/*.js", + "./pages/**/*.ts", + "./pages/**/*.jsx", + "./pages/**/*.tsx", + "./components/**/*.js", + "./components/**/*.ts", + "./components/**/*.jsx", + "./components/**/*.tsx" + ], darkMode: false, // or 'media' or 'class' theme: { container: {