jsonz1993/vite-plugin-load-css-module

Doesn't work when building?

lorgan3 opened this issue · 1 comments

Hi, thanks for this plugin. It works great in development mode.
When I create a build (with vite build) it seems like this plugin does not run and the css is not included.
Am I missing something or is this a missing feature?

When you in build , param id Suffix has ?used
like this
image

you can hack this by

let path = id.split("?").slice(0,1).join("")