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 <ivanli2048@gmail.com>
This commit is contained in:
Ivan Li
2024-10-08 19:18:49 +08:00
parent 04f3ba30af
commit c1f345181e

View File

@@ -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: {