Anidetrix / rollup-plugin-styles

🎨 Universal Rollup plugin for styles: PostCSS, Sass, Less, Stylus and more.
https://anidetrix.github.io/rollup-plugin-styles
MIT License
243 stars 43 forks source link

Import scss files from node_modules #131

Closed rafaelbastiansch closed 3 years ago

rafaelbastiansch commented 4 years ago

Can't I import scss files from packages inside node modules?

I can import css files like this @import '~vuetify/dist/vuetify.css';

but when I tried to import scss files like this @import '~vuetify/src/styles/generic/_colors.scss'; it doesn't work, and give me an error Can't find stylesheet to import. @import '~vuetify/src/styles/generic/_colors.scss';

Is there any way to import pre compiled style files?

Anidetrix commented 4 years ago

Hi @rafaelbastiansch,

Unfortunately, I could not reproduce your issue.

@import '~vuetify/src/styles/generic/_colors.scss';

Worked for me just fine (although it did give an error about undefined $shades variable, but this seems to be unrelated to the case).

So it seems that I'll need a minimal reproduction repo for this. Can you make one using rollup's REPL, REPL.it, or just GitHub repo?

rchl commented 3 years ago

I believe I also had an issue like that but importing from JS file using import worked fine. Try it out if that's an option for you.

Anidetrix commented 3 years ago

@rafaelbastiansch @rchl Closing this for now, please reopen if you encounter this problem again.