像这样:
sass --watch style.css:(other than root directory)
//or
sass --watch (other directory than .scss file):style.scss
最佳答案
sass --help
的输出:
--watch Watch files or directories for changes.
The location of the generated CSS can be set using a colon:
sass --watch input.sass:output.css
sass --watch input-dir:output-dir
可以,没有任何限制。只需使用调用 sass
的目录作为基本路径或绝对路径。例如:
sass --watch relative/path/to/a/scss/file:/absolute/path/to/a/css/file
关于css - 是否可以编辑 .CSS 文件而 .SCSS 文件不在同一个根目录中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9970050/