Gruntjs 使用grunt contrib concat获取它';s index.html中的源文件
我正在使用grunt contrib concat,我需要一种方法来自动化我的供应商连接步骤 现在,我在GrunFile中手动指定应该连接哪些供应商库 有没有办法从my index.html获取他们的名字?只使用contrib concat插件而不使用Min 有什么想法吗Gruntjs 使用grunt contrib concat获取它';s index.html中的源文件,gruntjs,grunt-contrib-concat,Gruntjs,Grunt Contrib Concat,我正在使用grunt contrib concat,我需要一种方法来自动化我的供应商连接步骤 现在,我在GrunFile中手动指定应该连接哪些供应商库 有没有办法从my index.html获取他们的名字?只使用contrib concat插件而不使用Min 有什么想法吗 concat: { app: { files: { 'dist/js/app.js': [
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'
}
},
为什么不用呢?它正是你想要的。Usemin对于这个来说太复杂了,而且它还有其他的限制。。。我正努力想办法解决这个问题,并提出一个简单的解决方案