css not work corectly on vite lib mode #50
Closed
shayan1998
started this conversation in
General
Replies: 1 comment 2 replies
-
That's not related to this package. And that's common for non CSS in js component library to says to users that they should have both imports. Not a big deal IMO, and better than hiding it. This allow users to better manage how and in which order they bundle their CSS. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to create a new npm package and I have a problem with vite lib mode.
I want my package to export some UI components that has some styles, project works fine on
yarn dev
but when I build it thestyle.css
file insidedist
directory is not used anywhere, so the styles not applied to the componentsthis is my
vite.config.ts
fileand this is
dist
folder :I know I can import my styles separately like :
but I want is to just import package like
import Skeleton from "skeleton-sh";
and its import the styles for meBeta Was this translation helpful? Give feedback.
All reactions