Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use imports with root slash? #426

Open
VityaSchel opened this issue Jul 15, 2022 · 0 comments
Open

How to use imports with root slash? #426

VityaSchel opened this issue Jul 15, 2022 · 0 comments

Comments

@VityaSchel
Copy link

VityaSchel commented Jul 15, 2022

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';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant