egoist / rollup-plugin-postcss

Seamless integration between Rollup and PostCSS.
MIT License
675 stars 215 forks source link

How to use imports with root slash? #426

Open VityaSchel opened 2 years ago

VityaSchel commented 2 years ago

Hello! Thank you for your work. I'd like to use this library with root imports like this:

import '/utils.scss';

I can do that in TypeScript and in Rollup using https://github.com/mixmaxhq/rollup-plugin-root-import but I can't figure out how to do that in SCSS file.

If it's impossible, is there a way I can do that with prefix? Like this:

import '~/utils.scss';