#Resolve sass files from node_modules

4 messages · Page 1 of 1 (latest)

mighty berry
#

Hello, I've installed "@picocss/pico" as a node dependency and now I want to import some file like:

@import "@picocss/scss/variables"

How can I tell Astro that @picocss actually means node_modules/@picocss?

mighty berry
#

Using @import "/node_modules/@picocss/pico/scss/variables" does seem to work.
But I would assume I can somehow make that mapping.

glad mortar
mighty berry
#

I'm importing my sass style sheet inside an actual sass file, so I assumed that would only work when you do an import in js?