From 87b3c2a18c9b179ef5f4955baa6f7d3e4f00db0e Mon Sep 17 00:00:00 2001 From: Robert Austin Date: Thu, 28 Oct 2021 17:39:46 +1000 Subject: [PATCH] enable purge on default tailwind config and lint file --- styles/tailwind.default.config.js | 35 +++++++++++++++---------------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/styles/tailwind.default.config.js b/styles/tailwind.default.config.js index c421bc44..efa14333 100644 --- a/styles/tailwind.default.config.js +++ b/styles/tailwind.default.config.js @@ -4,7 +4,7 @@ const defaultTheme = require('tailwindcss/defaultTheme'); module.exports = { mode: 'jit', purge: { - enabled: false, + enabled: true, content: ['./src/**/*.{js,ts,jsx,tsx}', './node_modules/@stackbit/components/src/{base,layouts,components,utils}/**/*.{js,ts,jsx,tsx}'], safelist: ['colors-a', 'colors-b', 'colors-c', 'colors-d', 'colors-e', 'colors-f', 'colors-g', 'colors-h', 'colors-i'] }, @@ -41,36 +41,35 @@ module.exports = { plugins: [ plugin(function ({ addBase, addComponents }) { addBase({ - 'h1': { + h1: { fontWeight: 'bold', textDecoration: 'none', textTransform: 'none', - letterSpacing: 'normal', + letterSpacing: 'normal' }, - 'h2': { + h2: { fontWeight: 'bold', textDecoration: 'none', textTransform: 'none', - letterSpacing: 'normal', + letterSpacing: 'normal' }, - 'h3': { + h3: { fontWeight: 'bold', textDecoration: 'none', textTransform: 'none', - letterSpacing: 'normal', + letterSpacing: 'normal' } }), - addComponents({ - '.sb-component-button-primary': { - borderRadius: '0', - textTransform: 'none' - - }, - '.sb-component-button-secondary': { - borderRadius: '0', - textTransform: 'none' - } - }) + addComponents({ + '.sb-component-button-primary': { + borderRadius: '0', + textTransform: 'none' + }, + '.sb-component-button-secondary': { + borderRadius: '0', + textTransform: 'none' + } + }); }) ] };