【问题标题】:Yeoman Webapp in combination with AssembleYeoman Webapp 与 Assemble 的结合
【发布时间】:2013-10-31 08:40:07
【问题描述】:

我正在尝试让默认的 Yeoman Webapp 与 Assemble.io 一起使用。
我跟着这个教程Using assemble.io with yeoman.io’s webapp Gruntfile

启动并运行(部分),我遇到的第一个问题是,当对 .hbs 文件进行更改时,livereload 没有启动。当我手动刷新时,我可以看到所做的更改。

这是我的Grunt file

第二个问题是“grunt build”给了我以下错误:
Running "requirejs:dist" (requirejs) task { [Error: Error: Missing either an "out" or "dir" config value. If using "appDir" for a full project optimization, use "dir". If you want to optimize to one file, use "out". at Function.build.createConfig ([MY DIRECTORY]/node_modules/grunt-contrib-requirejs/node_modules/requirejs/bin/r.js:25109:19) ] originalError: [Error: Missing either an "out" or "dir" config value. If using "appDir" for a full project optimization, use "dir". If you want to optimize to one file, use "out".] }

当我将以下内容添加到 requirejs:dist:options

appDir: '<%= yeoman.app %>/', dir: 'build'

然后这个错误解决了,但是出现下一个:

No "concat" targets found.
Warning: Task "concat" failed.
Use --force to continue.

版本:
Yeoman 1.0.4
Node 0.10.21
Bower 1.2.7
Grunt-cli 0.1.9
Grunt 0.4.1

有人看到问题了吗?谢谢!

【问题讨论】:

    标签: gruntjs yeoman grunt-assemble


    【解决方案1】:

    请参阅您的要点中的this line。它试图在您的 Gruntfile 中调用一个名为 concat 的任务,但该任务不存在。 Yeoman webapp 生成器可能发生了变化,或者您可能遇到了复制/粘贴问题或其他问题。 Gruntfile 的 assemble 部分看起来不错。

    我认为您可以删除 concat 并继续。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多