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

Importing .css files with @use #52

Closed
jdanyow opened this issue Sep 15, 2021 · 3 comments · Fixed by #67
Closed

Importing .css files with @use #52

jdanyow opened this issue Sep 15, 2021 · 3 comments · Fixed by #67

Comments

@jdanyow
Copy link

jdanyow commented Sep 15, 2021

Should it be possible to import a plain css file with @use as described in the sass docs?

/* code.css */
code {
  padding: .25em;
  line-height: 0;
}
// style.scss
@use 'code';

Potentially solved by #46

@connorskees
Copy link
Owner

Hello, yes this should be possible with both @use and @import. This is the top of my list to implement at the moment. The tricky part here is that I believe this requires writing a distinct parser for CSS. I am thinking this may be possible to implement over the weekend.

@connorskees
Copy link
Owner

As an update to this, I have a skeleton of a parser complete, but it is slightly blocked on a larger refactor of how selectors are parsed. I also want to write a lot of tests.

@jdanyow
Copy link
Author

jdanyow commented Sep 20, 2021

Appreciate all the hard work you’re doing!

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

Successfully merging a pull request may close this issue.

2 participants