42得票5回答
Grunt wiredep:app没有找到文件或目录bower.json。

我正试图将我的Yeoman的Angular应用部署到生产服务器上。当我尝试运行grunt build命令时,会出现以下错误: Running "wiredep:app" (wiredep) task Warning: ENOENT, no such file or director...

25得票1回答
是否有类似于grunt-wiredep的注入器可以用于NPM依赖项?

现在大多数包都可以在NPM和Bower中使用。我必须使用NPM,但我想在我的项目中削减Bower的使用。 我目前依靠grunt-wiredep来创建<script>包含在我的index.html里。这个工具会查看所有Bower配置文件,将所有必要的js和css文件导入到我的ind...

17得票3回答
如何控制Wiredep生成的Bower文件路径,以及如何控制添加/删除的文件。

我的应用程序目录如下: app -> appName -> index.html(js,css) 由于某种原因,这个appName的包装文件夹正在干扰wiredire。{ dest: '.tmp/concat/scripts/vendor.js', src: [...

11得票2回答
使用Grunt + Bower中的grunt-wiredep获取绝对路径

grunt-wiredep任务输出的是相对路径的资源。我需要用绝对路径。 所以,按照这里建议的方式重新配置了replace块:https://github.com/stephenplusplus/grunt-wiredep/issues/46 但是,当按照建议指定replace块后,我的脚本...

10得票1回答
在具有不同依赖项的多个文件上使用grunt-wiredep

当前的项目结构大致是这样的:-index.html | -bower.json | +-bower_components 拟议的项目结构将在项目根目录中添加几个静态html文件。到目前为止,我一直在管理bower.json中的所有前端依赖项,并使用grunt-wiredep任务自动将其包含在i...

9得票4回答
Grunt wiredep无法注入font-awesome。

我目前正在处理一个已经使用yeoman开始的项目。 出于某些原因,当我运行grunt-wiredep时,所有依赖项都会正确注入到我的index.html中,除了font-awesome。 这是我的bower.json文件: { "name": "watermelon", "ver...

8得票1回答
Yeoman和Grunt-wiredep没有注入依赖项

正在运行 "wiredep:target" (wiredep) 任务。 完成,没有错误。 但是未注入 bower.json 的依赖项。 无法调试此问题。如有帮助,将不胜感激。 Gruntfile.js: wiredep: { target: { ...