Dostosowywanie wyjścia formatowania.sass?
#foo {
color:black; }
Czy istnieje jakaś opcja prefiksu nowej linii przed zakończeniem }
, gdy plik .css
jest generowany z .sass
?
Byłbym wdzięczny, gdyby ktoś dodał przykład łączenia sass --watch style.scss:style.css
, którego używam, wraz z tym wymogiem newline.
23
Author: meder omuraliev, 2010-07-01
3 answers
Możesz podać parametr --style
, aby określić, co chcesz. Myślę, że chcesz styl "Rozszerzony":
sass --watch style.scss:style.css --style expanded
Zobacz dokumentację Sass dla różnych stylów wyjściowych.
47
Author: Andrew Vit,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2010-08-20 22:21:06
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2010-08-20 22:21:06
Możesz ustawić styl na Rozszerzony: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#output_style
4
Author: igorw,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2010-07-01 19:29:13
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2010-07-01 19:29:13
Znalazłem powyższe rozwiązanie błędu w terminalu. Jeśli tak, możesz spróbować poniżej, które zadziałały dla mnie.
Sass --watch scss: css --style expanded
0
Author: Al-76,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2018-08-15 12:36:11
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2018-08-15 12:36:11