From 1bcbb9417a83160fd611fa52c587d3f053f14714 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 22 Sep 2021 11:38:09 -0400 Subject: [PATCH] shrink tailwind package size by removing unused core components --- script/tailwind.config.js | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/script/tailwind.config.js b/script/tailwind.config.js index adc439d612..3c7978cbfc 100644 --- a/script/tailwind.config.js +++ b/script/tailwind.config.js @@ -1,4 +1,14 @@ +const colors = require('tailwindcss/colors') + module.exports = { + mode: 'jit', + corePlugins: { + float: false, + tableLayout: false, + sepia: false, + saturate: false, + }, + theme: { fontFamily: { display: [ @@ -17,15 +27,21 @@ module.exports = { "Segoe UI Symbol", "Noto Color Emoji" ], }, - extend: { - - }, + colors: { + transparent: 'transparent', + current: 'currentColor', + black: colors.black, + white: colors.white, + gray: colors.trueGray, + }, + extend: {}, }, variants: { }, - + darkMode: false, purge: [ - "../server/templates/**/*.hbs" + "../server/templates/**/*.hbs", + "../server/templates/*.hbs" ] } \ No newline at end of file