I need to inject all the files,and reinject the last three, all.css, foo.css and app.min.js so they are injected last.
Injecting task :
return gulp.src('src/index.html')
.pipe(inject(gulp.src(['temp/**/*.css','!temp/**/all.css','!temp/**/foo.css','./temp/**/*.js','!temp/**/app.min.js'], {read: false}), {ignorePath: 'temp'} ))
.pipe(inject(gulp.src(['temp/**/all.css','temp/**/foo.css,'temp/**/app.min.js'], {read: false}), {ignorePath: 'temp'} ))
.pipe(gulp.dest('temp'))
.pipe(connect.reload());
}
The way that i made it, it just overrides my first injection and injects only the second one.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…