R
R
raiboon2015-04-05 13:30:01
css
raiboon, 2015-04-05 13:30:01

Sass doesn't support importing css files?

Nothing in the docs about this.
But there are a lot of comments on the github that this is needed, but there is not a single answer that this is implemented.
On Habré I found a comment that already exists -

@import "CSS:../../bower_components/normalize.css/normalize.css";

But doesn't work, gulp-sass error:
Error: src/style/libs.scss
3:1 invalid top-level expression

UPD.
Both the variant above and the variant Andrey B. work . The problem was in the multi-line comment - did not pay attention to it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey B., 2015-04-05
@raiboon

@import "filename";

Z
zooks, 2015-04-05
@zooks

You need to rename .css to .scss.
And remove this:
CSS:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question