【问题标题】:Is there a way to "compass compile" into specified file path?有没有办法“罗盘编译”到指定的文件路径?
【发布时间】:2012-09-16 12:46:41
【问题描述】:

我正在为其主题构建一个由 SASS/Compass 支持的 ExtJS 4 应用程序。

我想生成 2 个文件:

  1. my-ext-theme.css
  2. my-ext-theme.min.css

我目前有一个“my-ext-theme.scss”文件,已成功编译为“my-ext-theme.css”。问题是我想要 1 个 scss 文件编译为 2+ 个 css 文件。此外,我希望这些 css 文件位于我想要的任何目录中。

注意:我想添加一个 config.rb 文件,以便它“仅”输出到不同的目录(即“css/my-ext-theme.css”和“css2/我的-ext-theme.css")。

有什么建议吗?

【问题讨论】:

    标签: extjs extjs4.1 compass-sass sass


    【解决方案1】:

    当前解决方案(有点烦人)

    my-ext-theme.scss // my sass code here
    my-ext-theme.min.scss // @import 'my-ext-theme';
    
    compass compile my-ext-theme.scss // development
    compass compile --output-style compressed my-ext-theme.min.scss // production
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-04
      • 2022-11-10
      相关资源
      最近更新 更多