【发布时间】:2015-06-16 10:27:27
【问题描述】:
我在一个新项目中使用 grunt-injector。它设置为将所有 bower 依赖项添加到 index.html 文件中。
我的依赖项中有离子,我只将它用于 javascript 文件而不是 css。所以我希望 grunt-injector 不要在我的项目中添加离子 css 文件。
这是我的配置:
injector: {
options: {
addRootSlash: false,
ignorePath: 'app/',
bowerPrefix: 'bower',
},
bowerDependencies: {
files: {
'app/index.html': ['bower.json'],
}
}
我可以通过修改 ionic/bower.json 来做到这一点:
"main": [
//"css/ionic.css",
"fonts/*",
"js/ionic.js",
"js/ionic-angular.js"
]
当然,我不想那样做
【问题讨论】:
标签: javascript gruntjs