From d44a771e7706bbea761379ff60751f9bd8fcff49 Mon Sep 17 00:00:00 2001 From: Jacob Emcken Date: Thu, 12 Jan 2023 23:39:46 +0100 Subject: [PATCH] Fix first build not having any CSS Tailwind is able to pick up changes faster since it doesn't need to wait for JS to be transpiled. But most importantly is the improved developer experience, avoiding a website without CSS the first time `npm run dev` is run. --- tailwind.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tailwind.config.js b/tailwind.config.js index 80c1c36..cc8da1d 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,8 +1,9 @@ const defaultTheme = require('tailwindcss/defaultTheme') module.exports = { - // in prod look at shadow-cljs output file in dev look at runtime, which will change files that are actually compiled; postcss watch should be a whole lot faster - content: process.env.NODE_ENV == 'production' ? ["./public/js/main.js"] : ["./public/js/cljs-runtime/*.js"], + content: [ + "./src/main/**/*.cljs" + ], theme: { extend: { fontFamily: {