vite-plugins
vite-plugins copied to clipboard
What's the correct way to import css?
While using vite plugin I found out that css import from client side script were blocked by hono (or the plugin not sure really)
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?