sass-zegarek z automatycznym minify?

Czy jest sposób na bieganie:

sass --watch a.scss:a.css

Ale czy a.css skończy się minifikacją?

Jak uniknąć konieczności uruchamiania osobnego kroku minifikacji podczas kompilacji arkusza stylów?

Author: tester, 2012-01-24

3 answers

 478
Author: tester,
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-01-09 19:13:51

Jeśli używaszJetBrains edytorów takich jak IntelliJ IDEA, PhpStorm, WebStorm itd. Użyj następujących ustawień w Ustawieniach > obserwatorzy plików. Tutaj wpisz opis obrazka

  1. Konwertuj style.scss na style.css Ustaw argumenty

    --no-cache --update $FileName$:$FileNameWithoutExtension$.css
    

    I ścieżki wyjściowe do odświeżania

    $FileNameWithoutExtension$.css
    
  2. Konwertuj style.scss do kompresji style.min.css Ustaw argumenty

    --no-cache --update $FileName$:$FileNameWithoutExtension$.min.css --style compressed
    

    I ścieżki wyjściowe do refresh

    $FileNameWithoutExtension$.min.css
    
 19
Author: Madan Sapkota,
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
2016-04-28 03:26:07

Jeśli używasz kompasu:

compass watch --output-style compressed
 12
Author: Olivier Loynet,
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
2015-07-01 18:23:21