我正在使用grunt-contrib-concat,我需要一种方法来自动化我的供应商连接步骤。
现在,我在GruntFile中手动指定应该连接哪些供应商库。
有没有办法从我的index.html获取他们的名字?只使用contrib-concat插件而不是使用min?
有什么想法吗?
concat: {
app: {
files: {
'dist/js/app.js': [
'src/**/*.js',
'!src/**/*.spec.js', // Exlcude the spec files.
'tmp/*.js'
]
}
},
vendor: {
src: [
'vendor/angular/angular.js',
'vendor/angular-route/angular-route.js',
'vendor/angular-bootstrap/ui-bootstrap-tpls.js'
],
dest: 'dist/js/vendor.js'
}
},