Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tailwind plugin wanders into scss files then crashes on build #2420

Closed
marcusjang opened this issue May 3, 2024 · 1 comment
Closed

Tailwind plugin wanders into scss files then crashes on build #2420

marcusjang opened this issue May 3, 2024 · 1 comment
Labels
bug Something isn't working.

Comments

@marcusjang
Copy link

When adding included Tailwind plugin to an existing project with sass/scss files in static directory, the plugin on buildStart will walk the static directory in search for css files. However when it bumps into scss files which postcss isn't able to parse, it throws the error below:

error: Uncaught (in promise) CssSyntaxError: <css input>:22:17: Unknown word

Seemingly caused by the line below in the plugin, which matches any files ending with css, including *.scss. Changing exts from "css" to ".css" seemed to solve the issue, but I'm not 100% sure if this was due to a design decision or simply a bug.

https://github.com/denoland/fresh/blob/main/plugins/tailwind.ts#L103

@marvinhagemeister marvinhagemeister added the bug Something isn't working. label May 3, 2024
@marvinhagemeister
Copy link
Collaborator

Just checked and this is resolved in Fresh 2 which will be released soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

2 participants