egoist / egoist/rollup-plugin-postcss

How to use imports with root slash?

Open
#426 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
689
Forks
210
PR merge metrics
No merged PRs in 30d

Description

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

```css
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:

```css
import '~/utils.scss';
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.