什么是命令“指南针手表"的等价物?对于 LESS CSS 预处理器?

我使用 SASS 作为 Drupal 主题的 CSS 预处理器.如果我使用 $ compass watch,在命令行的哪个位置.它会持续观察 .scss 文件的变化并应用于 .css 文件.

I was using SASS as CSS pre-processor for Drupal theme. Where in the command line if I use $ compass watch. It keep on watching the change in .scss file and apply to .css file.

只是我正在尝试 Bootstrap 主题,我正在使用 LESS CSS 预处理器,我每次都必须使用 $ lessc less/style.less css/style.css应用更改.

Just I am trying Bootstrap theme and there I am using LESS CSS pre-processor, Where I have to use $ lessc less/style.less css/style.css every time to apply change.

LESS 的 $ compass watch 是什么.

What is the equivalent of $ compass watch for LESS.

推荐答案

  1. 你需要安装less-watch-compiler:
    npm install -g less-watch-compiler

确保您在全局范围内安装 less:
npm install -g less

Make sure you installed less globally:
npm install -g less

相关文章