From 45922ed3a34510b1d2eb3e31b7564014d16083d2 Mon Sep 17 00:00:00 2001 From: Aymen Djellal Date: Wed, 25 Sep 2024 09:12:54 -0400 Subject: [PATCH] [FIX] Fix broken CSS This is a fix for #141 The CSS was broken due to the import in the tailwind.config.js, it should be inside the module.exports and not outside. Thats why bun was giving a warning before : ``` # bun run dev warn - The `content` option in your Tailwind CSS configuration is missing or empty. warn - Configure your content sources or your generated CSS will be missing styles. warn - https://tailwindcss.com/docs/content-configuration ``` it is now fixed --- tailwind.config.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tailwind.config.js b/tailwind.config.js index f1c5a5b..2ae7deb 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,10 +1,9 @@ /** @type {import('tailwindcss').Config} */ -import scrollbar from 'tailwind-scrollbar'; // eslint-disable-next-line no-undef module.exports = { - content: ["./src/**/*.{html,js,tsx,jsx,cjs,mjs}"], + content: ['./src/**/*.{html,js,tsx,jsx,cjs,mjs}'], theme: { extend: {}, }, - plugins: [scrollbar()], -} \ No newline at end of file + plugins: [require('tailwind-scrollbar')], +}