在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):mrcljx/gulp-order开源软件地址(OpenSource Url):https://github.com/mrcljx/gulp-order开源编程语言(OpenSource Language):CoffeeScript 98.2%开源软件介绍(OpenSource Introduction):gulp-orderThe gulp plugin MotivationAssume you want to concatenate the following files in the given order (with
You'll need two streams:
To combine the streams you can pipe into another Usage
var order = require("gulp-order");
var coffee = require("gulp-coffee");
var concat = require("gulp-concat");
gulp
.src("**/*.coffee")
.pipe(coffee())
.pipe(gulp.src("**/*.js")) // gulp.src passes through input
.pipe(order([
"vendor/js1.js",
"vendor/**/*.js",
"app/coffee1.js",
"app/**/*.js"
]))
.pipe(concat("all.js"))
.pipe(gulp.dest("dist"));
// When passing gulp.src stream directly to order, don't include path source/scripts in the order paths.
// They should be relative to the /**/*.js.
gulp
.src("source/scripts/**/*.js")
.pipe(order([
"vendor/js1.js",
"vendor/**/*.js",
"app/coffee1.js",
"app/**/*.js"
]))
.pipe(concat("all.js"))
.pipe(gulp.dest("dist")); Optionsgulp
.src("**/*.coffee")
// ...
.pipe(order([...], options))
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论