Skip to content

Compatibility with vite #2

@bailianhua

Description

@bailianhua

The command create the postcss.config.js and tailwind.config.js.

If you try to run it with vite it will cause a fail to load config error (Failed to load PostCSS config)

Vite expect commonjs file extension to be .cjs

For now my workaround is to rename the postcss.config.js and tailwind.config.js to postcss.config.cjs and tailwind.config.cjs

I don't familiar with do a PR on public projects and also didn't quite sure if there're a reason for the file to be .js file.so I'm just gonna file an issue here. if anyone encounter the same problem try rename the file, if author can change to generated file that should fix the compatibility with vite problem

thank you for the tool btw, it's more convenient for me who just start using daisyui.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions