From c1f345181e3ffa316ecf9db2dfca890a254eae4e Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Tue, 8 Oct 2024 19:18:49 +0800 Subject: [PATCH] fix(config): resolve tailwind styles loss in bun environment Change the export syntax in tailwind.config.js from CommonJS to ES modules. This modification fixes the issue of missing Tailwind CSS styles when running the application with bun. Signed-off-by: Ivan Li --- tailwind.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailwind.config.js b/tailwind.config.js index 32b3139..8606ce3 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,7 +1,7 @@ import defaultTheme from 'tailwindcss/defaultTheme'; import typographyPlugin from '@tailwindcss/typography'; -module.exports = { +export default { content: ['./src/**/*.{astro,html,js,jsx,json,md,mdx,svelte,ts,tsx,vue}'], theme: { extend: {