首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >jit-grunt:没有找到“清理”任务的插件?

jit-grunt:没有找到“清理”任务的插件?
EN

Stack Overflow用户
提问于 2016-11-04 21:57:17
回答 1查看 3.5K关注 0票数 1

当我运行grunt build时,我得到了这个错误,你知道我如何解决这个问题吗?

grunt构建

代码语言:javascript
复制
Running "concurrent:dist" (concurrent) task
    Warning: 
    jit-grunt: Plugin for the "compass" task not found.
    If you have installed the plugin already, please setting the static mapping.
    See https://github.com/shootaroo/jit-grunt#static-mappings

    Warning: Task "compass:dist" failed. Use --force to continue.

    Aborted due to warnings.

Gruntfile.js

代码语言:javascript
复制
  require('jit-grunt')(grunt, {
    express: 'grunt-express-server',
    useminPrepare: 'grunt-usemin',
    ngtemplates: 'grunt-angular-templates',
    cdnify: 'grunt-google-cdn',
    protractor: 'grunt-protractor-runner',
    buildcontrol: 'grunt-build-control',
    istanbul_check_coverage: 'grunt-mocha-istanbul',
    ngconstant: 'grunt-ng-constant'
  });
EN

回答 1

Stack Overflow用户

发布于 2016-11-04 22:06:59

您需要将compass插件作为依赖项安装。您可以通过从您的工作目录执行以下命令来实现这一点。

代码语言:javascript
复制
npm install grunt-contrib-compass --save-dev

希望这能有所帮助!

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40424537

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档