A
A
Anton2017-10-30 19:16:21
Sass
Anton, 2017-10-30 19:16:21

Variables for all .sass files. How to declare globally?

Good afternoon.
I use concat in the galpa, 3 or more .sass files will be used, which are eventually collected into one .css
Question... How to declare variables so that they become available in any of the .sass files and in the end everything compiles as it should?
If you declare them in the file in which you are working, it’s not a problem, it works, but when you connect the second one, I just got stuck, because these variables are no longer visible :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor Zhivagin, 2017-10-30
@Eridani

If you do it via concat - the option is only to write to each necessary scss file Or you can make require-s into one file and already compile it into css. Then the first require is a file with variables @import "файл_с_переменными";

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question