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

SASS support #109

Closed
vinkla opened this issue Jul 8, 2016 · 4 comments
Closed

SASS support #109

vinkla opened this issue Jul 8, 2016 · 4 comments

Comments

@vinkla
Copy link
Contributor

vinkla commented Jul 8, 2016

In version 4 both the SASS and SCSS files seems to be gone? Is there a reason behind it? Is there another repository we can use instead?

@chrisvanpatten
Copy link

For those who encounter this in the future, libsass now allows you to import/include raw CSS files by just omitting the .css extension, as you would any .sass or .scss file. This should supersede the need for dedicated Sass-compatible files.

(Not sure if this change tracked to the Ruby implementation of Sass.)

(Including the .css extension will render @import url(path/to/file.css);, as in previous versions.)

@vinkla
Copy link
Contributor Author

vinkla commented Jul 19, 2016

@chrisvanpatten didn't know that. This has been a big flaw in earlier versions of SASS. Thanks for sharing.

@vinkla vinkla closed this as completed Jul 19, 2016
@chrisvanpatten
Copy link

Happy to help! It's a great little fix that wasn't well advertised. Hope it helps others.

@pavelhamrik
Copy link

pavelhamrik commented Dec 27, 2018

This 'feature' is now being deprecated. What is the current best practice? Creating that importer just for this? Relying on Webpack and such?

DEPRECATION WARNING [line and file ref omitted]:
Including .css files with @import is non-standard behaviour which will be removed in future versions of LibSass.
Use a custom importer to maintain this behaviour. Check your implementations documentation on how to create a custom importer.

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