Browse Source

[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
Aymen Djellal 10 months ago
parent
commit
45922ed3a3
1 changed files with 3 additions and 4 deletions
  1. 3 4
      tailwind.config.js

+ 3 - 4
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()],
-}
+  plugins: [require('tailwind-scrollbar')],
+}