Gruntjs Yeoman、grunt和bower:可以在没有javascript文件的情况下安装引导程序吗?

Gruntjs Yeoman、grunt和bower:可以在没有javascript文件的情况下安装引导程序吗?,gruntjs,bower,bower-install,grunt-wiredep,Gruntjs,Bower,Bower Install,Grunt Wiredep,我使用bower安装引导程序安装引导程序 我正在使用grunt构建我的项目。我正在尝试添加bootstrap并排除bootstrap.js文件 // Automatically inject Bower components into the app wiredep: { options: { cwd: '<%= yeoman.app %>' }, app: { src: ['<%= yeoman.app %>/index.html'],

我使用
bower安装引导程序安装引导程序

我正在使用grunt构建我的项目。我正在尝试添加bootstrap并排除bootstrap.js文件

// Automatically inject Bower components into the app
wiredep: {
  options: {
    cwd: '<%= yeoman.app %>'
  },
  app: {
    src: ['<%= yeoman.app %>/index.html'],
    exclude: ['bower_components/bootstrap/dist/js/bootstrap.js'],
    ignorePath:  /\.\.\//
  }
}
//自动将Bower组件注入应用程序
wiredep:{
选项:{
cwd:'
},
应用程序:{
src:['/index.html'],
排除:['bower_components/bootstrap/dist/js/bootstrap.js'],
忽略路径:/\.\\//
}
}
Hower
bower\u components/bootstrap/dist/js/bootstrap.js
始终包含在内


如何排除引导javascript文件?

似乎
排除:['bootstrap.js']
解决了我的问题。然而,这并不是很清楚的记录…

似乎
排除:['bootstrap.js']
解决了我的问题。然而,这不是很清楚的记录