How to source nested libraries? #18813
-
I have a npm package: The chain in the docs show how to use (project-with-tailwind) -> (some-library-with-classes) This is my scenario: (project with tailwind) -> (some-library) -> (some-library-with-classes) I want to source |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Usually, dependencies would be installed in the same @source "../node_modules/@skeletonlabs/skeleton-svelte";
@source "../node_modules/@skeletonlabs/skeleton-common"; You can double-check the location of the |
Beta Was this translation helpful? Give feedback.
-
Hey @Hugos68! The best way to do all of this is using CSS imports so you can place the /* @skeletonlabs/skeleton-svelte/index.css */
@import "@skeletonlabs/skeleton-common";
@source "./"; /* @skeletonlabs/skeleton-common/index.css */
@source "./"; Then in your apps you can just import /* my-project/styles.css */
@import "tailwindcss";
@import "@skeletonlabs/skeleton-svelte"; Now all of those source paths are private implementation details and you don't have to worry about where the package managers put everything. |
Beta Was this translation helpful? Give feedback.
Hey @Hugos68! The best way to do all of this is using CSS imports so you can place the
@source
rules local relative to the files they refer to:Then in your apps you can just import
@skeletonlabs/skeleton-svelte
:Now all of those source paths are private implementation details and you don't have to worry about where the package managers put everything.