0

我正在使用 grunt-contrib-concat,我需要一种方法来自动化我的供应商连接步骤。

现在,我在 GruntFile 中手动指定应该连接哪些供应商库。

有没有办法从我的 index.html 中获取他们的名字?只使用 contrib-concat 插件而不使用 usemin?

有任何想法吗?

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'
            }
        },
4

0 回答 0