通过Yeoman启动一个新的Angular项目,询问您是否要包含Twitter Bootstrap(我使用Sass的风格)。这样做包括样式和脚本。但是,我想使用
UI Bootstrap而不是Bootstrap的脚本(依赖于jQuery)。
那么,是否可以在Bower中安装Bootstrap的样式(最好在Sass中)?或者我只需要手动下载并包含Bootstrap样式?
只需在grunt bowerInstall任务中添加exclude选项,并且bowerInstall任务将不会将排除的文件注入到html文件中
bowerInstall: { app: { src: ['<%= yeoman.app %>/index.html'],exclude: ['bower_components/bootstrap/dist/js/bootstrap.js'],ignorePath: '<%= yeoman.app %>/' } },