Twitter bootstrap Grunt serve在更新到3.3.4后删除引导sass官方javascript文件

Twitter bootstrap Grunt serve在更新到3.3.4后删除引导sass官方javascript文件,twitter-bootstrap,gruntjs,yeoman,bower,grunt-wiredep,Twitter Bootstrap,Gruntjs,Yeoman,Bower,Grunt Wiredep,我正在使用Yeoman生成一个带有引导和Sass的web应用程序项目。(使用最新版本的yo和模板)。我想做的下一件事是将Sass版本从3.2.0更新到3.3.4,这是我使用的。 Bootstrap 3.3.4安装良好,bower.json更新为 { "name": "yo-project-3", "private": true, "dependencies": { "bootstrap-sass-official": "~3.3.4", "modernizr

我正在使用Yeoman生成一个带有引导和Sass的web应用程序项目。(使用最新版本的yo和模板)。我想做的下一件事是将Sass版本从3.2.0更新到3.3.4,这是我使用的。 Bootstrap 3.3.4安装良好,bower.json更新为

{
   "name": "yo-project-3",
   "private": true,
   "dependencies": {
     "bootstrap-sass-official": "~3.3.4",
     "modernizr": "~2.8.2"
   },
   "resolutions": {
     "bootstrap-sass-official": "~3.3.4"
   }
 }
但是,当我运行grunt Service时,所有引导sass官方javascript文件都将从app/index.html中删除

以前有一长串js文件,但我只剩下以下内容:

<!-- build:js(.) scripts/vendor.js -->
<!-- bower:js -->
<script src="bower_components/jquery/dist/jquery.js"></script>
<!-- endbower -->
<!-- endbuild -->

如何配置Bower/Grunt/Wiredep以继续注入引导js文件

Grunfile:

//于2015-06-10使用
//生成器webapp 0.5.1
"严格使用",;
//#全球化
//出于性能原因,我们只降低了一个级别:
//'test/spec/{,*/}*.js'
//如果要递归匹配所有子文件夹,请使用:
//“test/spec/***.js”
module.exports=函数(grunt){
//任务所需的时间。可以帮助优化构建时间
要求(“时间咕噜”)(咕噜);
//自动加载grunt任务
要求('load-grunt-tasks')(grunt);
//可配置路径
变量配置={
应用程序:“应用程序”,
dist:“dist”
};
//定义所有任务的配置
grunt.initConfig({
//项目设置
config:config,
//监视文件的更改,并基于更改的文件运行任务
观察:{
鲍尔:{
文件:['bower.json'],
任务:['wiredep']
},
js:{
文件:['/scripts/{,*/}*.js'],
任务:['jshint'],
选项:{
利弗雷罗德:没错
}
},
jstest:{
文件:['test/spec/{,*/}*.js'],
任务:[“测试:监视”]
},
Grunfile:{
文件:['grunfile.js']
},
sass:{
文件:['/styles/{,*/}*{scss,sass}'],
任务:['sass:server','autoprefixer']
},
风格:{
文件:['/styles/{,*/}*.css'],
任务:[“更新的:复制:样式”,“自动引用器”]
},
利弗雷罗德:{
选项:{
livereload:'
},
档案:[
'/{,*/}*.html',
“.tmp/styles/{,*/}*.css”,
“/images/{,*/}*”
]
}
},
//实际的grunt服务器设置
连接:{
选项:{
港口:9000,
开放:是的,
利弗雷罗德:35729,
//将此更改为“0.0.0.0”以从外部访问服务器
主机名:“localhost”
},
利弗雷罗德:{
选项:{
中间件:功能(连接){
返回[
connect.static('.tmp'),
connect().使用('/bower\u components',connect.static('/bower\u components'),
connect.static(config.app)
];
}
}
},
测试:{
选项:{
开:错,
港口:9001,
中间件:功能(连接){
返回[
connect.static('.tmp'),
connect.static('test'),
connect().使用('/bower\u components',connect.static('/bower\u components'),
connect.static(config.app)
];
}
}
},
地区:{
选项:{
基:“”,
利弗雷罗德:错
}
}
},
//清空文件夹以重新开始
清洁:{
地区:{
档案:[{
多特:没错,
src:[
“.tmp”,
'/*',
“!/.git*”
]
}]
},
服务器:'.tmp'
},
/确保代码风格达到标准,没有明显的错误。
jshint:{
选项:{
jshintrc:“.jshintrc”,
记者:require('jshint-style')
},
全部:[
“Gruntfile.js”,
“/scripts/{,*/}*.js”,
“!/scripts/vendor/*”,
'test/spec/{,*/}*.js'
]
},
//Mocha测试框架配置选项
摩卡咖啡:{
全部:{
选项:{
run:是的,
URL:['http://:/index.html']
}
}
},
//将Sass编译为CSS,并在需要时生成必要的文件
sass:{
选项:{
加载路径:“bower_组件”
},
地区:{
档案:[{
是的,
cwd:“/styles”,
src:['*.{scss,sass}'],
目标:'.tmp/styles',
分机:'.css'
}]
},
服务器:{
档案:[{
是的,
cwd:“/styles”,
src:['*.{scss,sass}'],
目标:'.tmp/styles',
分机:'.css'
}]
}
},
//添加供应商前缀样式
自动刷新器:{
选项:{
浏览器:['>1%,'last 2 versions','Firefox ESR','Opera 12.1']
},
地区:{
档案:[{
是的,
cwd:“.tmp/styles/”,
src:'{,*/}*.css',,
目标:'.tmp/styles/'
}]
}
},
//自动将Bower组件注入HTML文件
wiredep:{
应用程序:{
忽略路径:/^\/\.\.\/,,
src:['/index.html'],
排除:['bower_components/bootstrap sass official/assets/javascripts/bootstrap.js']
},
sass:{
src:['/styles/{,*/}*{scss,sass}'],
ignorePath:/(\.\.\/){1,2}bower\u组件\//
}
},
//重命名文件以用于浏览器缓存
修订版:{
地区:{
档案:{
src:[
“/scripts/{,*/}*.js”,
“/styles/{,*/}*.css”,
“/images/{,*/}**”,
“/styles/fonts/{,*/}**”,
“/*.{ico,png}”
]
}
}
},
//读取usemin块的HTML以启用自动生成的智能构建
//压缩、缩小和修订文件。在内存中创建配置,以便
//其他任务可以对它们进行操作
使用准备:{
选项:{
目标:“”
},
html:“/index.html”
},
//基于rev和usemi执行重写
"main": [
    "assets/stylesheets/_bootstrap.scss",
    "assets/fonts/bootstrap/glyphicons-halflings-regular.eot",
    "assets/fonts/bootstrap/glyphicons-halflings-regular.svg",
    "assets/fonts/bootstrap/glyphicons-halflings-regular.ttf",
    "assets/fonts/bootstrap/glyphicons-halflings-regular.woff",
    "assets/fonts/bootstrap/glyphicons-halflings-regular.woff2",
    "assets/javascripts/bootstrap.js"
],
"main": [
    "assets/stylesheets/_bootstrap.scss",
    "assets/fonts/bootstrap/glyphicons-halflings-regular.eot",
    "assets/fonts/bootstrap/glyphicons-halflings-regular.svg",
    "assets/fonts/bootstrap/glyphicons-halflings-regular.ttf",
    "assets/fonts/bootstrap/glyphicons-halflings-regular.woff",
    "assets/fonts/bootstrap/glyphicons-halflings-regular.woff2",
    "assets/javascripts/bootstrap/affix.js",
    "assets/javascripts/bootstrap/alert.js",
    "assets/javascripts/bootstrap/button.js",
    "assets/javascripts/bootstrap/carousel.js",
    "assets/javascripts/bootstrap/collapse.js",
    "assets/javascripts/bootstrap/dropdown.js",
    "assets/javascripts/bootstrap/tab.js",
    "assets/javascripts/bootstrap/transition.js",
    "assets/javascripts/bootstrap/scrollspy.js",
    "assets/javascripts/bootstrap/modal.js",
    "assets/javascripts/bootstrap/tooltip.js",
    "assets/javascripts/bootstrap/popover.js"
],