Concat scripts in order with Gulp

后端 未结 17 1523
后悔当初
后悔当初 2020-11-28 01:51

Say, for example, you are building a project on Backbone or whatever and you need to load scripts in a certain order, e.g. underscore.js needs to be loaded befo

17条回答
  •  情书的邮戳
    2020-11-28 02:49

    I just use gulp-angular-filesort

    function concatOrder() {
    
        return gulp.src('./build/src/app/**/*.js')
            .pipe(sort())
            .pipe(plug.concat('concat.js'))
            .pipe(gulp.dest('./output/'));
    }
    

提交回复
热议问题