Skip to content

Commit 6aab772

Browse files
committed
fix(update): fixed CSS & JS injection to HTML according to latest API changes
1 parent 31a299b commit 6aab772

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

gulpfile.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,10 @@ var fnInject = function (path) {
215215
js : (config.vendor_files.js).concat(config.build + '/+(app|common)/**/*.module.js').concat(config.build + '/+(app|common)/**/*.js')
216216
};
217217

218-
return gulp.src(inject.css.concat(inject.js), { read: false })
219-
.pipe(plugins.inject(path, {
218+
var sources = gulp.src(inject.css.concat(inject.js), { read: false });
219+
220+
return gulp.src(path)
221+
.pipe(plugins.inject(sources, {
220222
addRootSlash: false,
221223
ignorePath: ['/', config.build + '/']
222224
}))

0 commit comments

Comments
 (0)