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

What's the correct way to import css? #49

Open
albizures opened this issue Jan 5, 2024 · 0 comments
Open

What's the correct way to import css? #49

albizures opened this issue Jan 5, 2024 · 0 comments

Comments

@albizures
Copy link

albizures commented Jan 5, 2024

While using vite plugin I found out that css import from client side script were blocked by hono (or the plugin not sure really)

CleanShot 2024-01-04 at 7  40 02@2x

My workaround was to exclude css files from the plugin options, like so:

exclude: [
 ...defaultOptions.exclude,
 /(.*\.css$|.*\.css\?t=[\d]+$)/
//                      ^ also considering updates
],

Not sure if this is the best way to handle this, if so wouldn't be better to add it into the default options?

@albizures albizures changed the title What will be the correct way to import css? What's the correct way to import css? Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant