Sass: print to terminal
问题 Is there a way to have Sass print out a variable to the terminal? 回答1: Sass 3.3 and older There are 2 error related directives: @debug The @debug directive prints the value of a SassScript expression to the standard error output stream. @debug 10em + 12em; outputs: Line 1 DEBUG: 22em @warn The @warn directive prints the value of a SassScript expression to the standard error output stream. It's useful for libraries that need to warn users of deprecations or recovering from minor mixin usage