私は grunt-contrib-concat を使用していますが、ベンダーの連結手順を自動化する方法が必要です。
現在、どのベンダー ライブラリを連結するかを GruntFile で手動で指定しています。
index.html から名前を取得する方法はありますか? usemin ではなく、contrib-concat プラグインだけを使用していますか?
何か案は?
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'
}
},