css - 是否可以编辑 .CSS 文件而 .SCSS 文件不在同一个根目录中?

标签 css directory sass

像这样:

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/

相关文章:

javascript - 如何在没有冲突的 Node 中创建 tmp 目录

javascript - 以编程方式更改样式 ionic toast

javascript - react 主题样式

css - 在标题中居中图像和文本

html - 如何将插入符号与面包屑中的文本垂直居中对齐?

css - 如何将 css cals() 转换为 rem?

php - 计数目录中的文件,但不包括子目录

html - 在 HTML 中过度使用有序/无序列表

Python:计算从一个目录到另一个目录的相对路径

css - 将@extend 指令与类和占位符选择器一起使用?