【问题标题】:Is it possible edit .CSS file while .SCSS file is not in the same root?.SCSS 文件不在同一个根目录中时是否可以编辑 .CSS 文件?
【发布时间】:2012-04-02 22:25:20
【问题描述】:

类似这样的:

sass --watch style.css:(other than root directory)
//or
sass --watch (other directory than .scss file):style.scss

【问题讨论】:

    标签: css directory sass


    【解决方案1】:

    来自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
    

    【讨论】:

      猜你喜欢
      • 2016-11-18
      • 1970-01-01
      • 2013-07-21
      • 1970-01-01
      • 1970-01-01
      • 2021-02-11
      • 2018-03-13
      • 1970-01-01
      • 2017-03-18
      相关资源
      最近更新 更多