N
N
notveganmustdie2015-08-01 15:19:35
Sass
notveganmustdie, 2015-08-01 15:19:35

Can a SASS file be split into multiple CSS files?

Maybe some comments on the beginning and end of the blocks, so that several style-n.css can be compiled from one style.scss?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Khokhlov, 2015-08-01
@notveganmustdie

Write in different .sass files (this will be correct in any situation) and collect as many different css from them as you like.

W
webpixel, 2015-08-02
@webpixel

As Andrey said above, only by creating several files, for example, you need to get 2 files as an output: main.css and ie8.css, then we rename the files in the sass folder (the first 3 are connected to main.css via import):
sass\
_normalize. scss
_base.scss
_media.scss
main.scss
ie8.scss
and run
sass --watch sass:css
where sass and css are directory names, we have 2 files as output.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question