rollup-plugin-postcss icon indicating copy to clipboard operation
rollup-plugin-postcss copied to clipboard

How to use imports with root slash?

Open VityaSchel opened this issue 3 years ago • 0 comments

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';

VityaSchel avatar Jul 15 '22 11:07 VityaSchel