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

Syntax for importing CSS files #287

Closed
craig-jennings opened this issue Apr 10, 2018 · 4 comments
Closed

Syntax for importing CSS files #287

craig-jennings opened this issue Apr 10, 2018 · 4 comments

Comments

@craig-jennings
Copy link

Is there a way to include basic CSS files in a SASS compilation? I've googled around and the majority advice is to use the syntax @import "my-file" without an extension. I found this only works using libsass, where as this dart implementation doesn't seem to work.

Some related issues I found:
sass/sass#1094
sass/sass#193
sass/libsass#754 - libsass implementation of above syntax

I'm just curious if this syntax is planned to be supported in this dart implementation or it will remain an exclusive of libsass.

@nschonni
Copy link
Contributor

libsass will be removing that behaviour sass/libsass#2611

@craig-jennings
Copy link
Author

Thanks @nschonni, I hadn't seen that issue. Is there any plan to allow for importing CSS files some other way?

@nschonni
Copy link
Contributor

I think that's being discussed in https://github.com/sass/proposal.module-system

@stratboy
Copy link

stratboy commented Dec 1, 2022

@import without .css extension, will perfectly work in dart sass.

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

3 participants