【问题标题】:grunt skip script on deployment部署时的 grunt 跳过脚本
【发布时间】:2013-06-09 16:04:39
【问题描述】:

我使用 less.js 来编写我的 CSS。当我构建项目(grunt-server、grunt)时,grunt-contrib-less 插件将 less.js 样式转换为我的 main.css 文件。我只在我的 index.html 中包含这个文件。

这对于部署非常有用,但对于开发却不是那么好。我需要构建项目或运行“grunt less”来查看我的 css 的更改。

我猜有一种更简单的方法可以做到这一点,但我是 grunt en yeoman 的新手,所以我不知道去哪里找。

【问题讨论】:

    标签: less gruntjs yeoman


    【解决方案1】:

    我建议使用 grunt-contrib-watch 和 grunt-contrib-less。

    【讨论】:

      猜你喜欢
      • 2018-12-08
      • 1970-01-01
      • 2013-10-26
      • 1970-01-01
      • 1970-01-01
      • 2019-11-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多