NiGhTTraX / ts-monorepo

Template for setting up a TypeScript monorepo
MIT License
1.5k stars 169 forks source link

How can I handle css/less in @nighttrax/components #321

Closed tyy-0818 closed 1 year ago

tyy-0818 commented 1 year ago

Dear

When I run pnpm build in the @nighttrax/components directory, I find that my css files are not packaged in the dist directory. Any suggestions if I want to package this project as a component library

NiGhTTraX commented 1 year ago

Hey @uuuhs, the exact setup for importing LESS/CSS (or any other static assets) is up to you, but will most likely involve a bundler (webpack, rollup etc.). As such, it's a bit out of scope for this repo, but I'll note that whatever setup you choose, you will most likely have to replicate it for any consumer of the shared package if you want to use path aliases for hot reload and jump to definition.