【问题标题】:Compass not compiling magento rwd childtheme everytime指南针每次都不编译magento rwd childtheme
【发布时间】:2014-10-25 23:50:28
【问题描述】:

更新:这似乎是 apache 的问题,因为它发生在其他非 magento/compass 项目中

编译本身不会遇到任何问题。然而,考虑到以下因素,浏览器并不总是显示我对 scss 文件所做的更改

-浏览器缓存禁用

-Magento 缓存已禁用

-Apache2 重新加载

-终端中的指南针输出正确

我用 compass 编译 sass 的命令是:

compass watch 

什么给了?为什么我所做的更改不是每次都显示,而是有时显示?

这里是输出日志

在 02:52:38 检测到更改为:styles.scss 覆盖 ../css/styles.css 在 02:52:54 检测到更改为:styles.scss 覆盖 ../css/styles.css
在 02:53:16 检测到更改为:styles.scss 覆盖 ../css/styles.css

即使有了这个输出,也没有任何改变,但如果我等待一段时间,改变就会出现......

这是 config.rb 文件:

# note: this should never truly be refernced since we are using relative assets
http_path = "/skin/frontend/electrotheme/default/"
css_dir = "../css"
sass_dir = "../scss"
images_dir = "../images"
javascripts_dir = "../js"
relative_assets = true

output_style = :compressed 
environment = :production

【问题讨论】:

    标签: css magento sass themes compass


    【解决方案1】:

    这里的错误是在灯泡安装中,在我的ubuntu操作系统上重新安装灯泡后,它现在可以正常运行了

    compass watch
    

    当我保存时编译几乎是imidiate。

    【讨论】:

      猜你喜欢
      • 2013-12-27
      • 1970-01-01
      • 2018-08-17
      • 2011-10-06
      • 2013-12-29
      • 2012-02-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多