指南针监视检测到变化两次(编译后)?

时间:2014-01-17 09:19:03

标签: sass compass-sass

我有一个drupal子主题(omega)与sass-compass一起使用。当我转到我的主题文件夹并运行"罗盘手表"它总是检测到一个变化(尽管它说所有已编译的css文件都是相同的。当我将某些内容更改为我的scss时,它会检测到更改并重新编译已更改的文件,但在编译之后,它始终会检测到更改并且再次检查文件。

如果我的解释不是100%明确,请检查下面的cmd行:

C:\webserver\htdocs\mysite\sites\all\themes\my_theme>compass watch
>>> Change detected at 10:05:28 to: my-theme.no-query.scss
identical css/my-theme.no-query.css
identical css/my-theme.normalize.css
identical css/my-theme.styles.css
>>> Compass is polling for changes. Press Ctrl-C to Stop.
>>> Change detected at 10:05:39 to: my-theme.styles.scss
overwrite css/my-theme.no-query.css
identical css/my-theme.normalize.css
overwrite css/my-theme.styles.css
>>> Change detected at 10:05:42 to: my-theme.styles.scss ( << why is this happening)
identical css/my-theme.no-query.css
identical css/my-theme.normalize.css
identical css/my-theme.styles.css

从cmd-lines中可以看到,检测到的最后一次更改是在实际更改后3秒...每当我更改任何内容到scss时,它会检测到更改,重新编译并立即检测到另一个更改,即使有没有任何人。

我这种正常的行为(对我来说似乎很奇怪)如果不是,那可能是什么导致这种情况?

在编译的css文件正确但我安装了livereload的意义上,这不是一个问题,这似乎也检测到多个更改导致网站重新加载两次。

更新

我添加了--dry-run flag,它给了我这个:

C:\webserver\htdocs\mysite\sites\all\themes\my_theme>compass watch --dry-run
>>> Change detected at 10:05:28 to: my-theme.no-query.scss
identical css/my-theme.no-query.css
identical css/my-theme.normalize.css
identical css/my-theme.styles.css
>>> Change detected at 10:05:39 to: my-theme.styles.scss
overwrite css/my-theme.no-query.css
identical css/my-theme.normalize.css
overwrite css/my-theme.styles.css
>>> Change detected at 10:05:42 to: my-theme.styles.scss ( << why is this happening)
overwrite css/my-theme.no-query.css
identical css/my-theme.normalize.css
overwrite css/my-theme.styles.css
换句话说,在最初的罗盘手表变化检测后,似乎总是运行两次。

0 个答案:

没有答案