add gulp-inject for debugging
This commit is contained in:
parent
1664c9d26a
commit
8457fd4a85
3 changed files with 16 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ var tap = require('gulp-tap');
|
|||
var path = require('path');
|
||||
var cached = require('gulp-cached');
|
||||
var remember = require('gulp-remember');
|
||||
var inject = require('gulp-inject');
|
||||
|
||||
var paths = {
|
||||
// see overrides in bower.json
|
||||
|
|
@ -105,4 +106,12 @@ gulp.task('debug', function() {
|
|||
//return gulp.src(mainBowerFiles({debugging: true}));
|
||||
});
|
||||
|
||||
gulp.task('inject', function () {
|
||||
var target = gulp.src('index.html');
|
||||
var sources = gulp.src(paths.scripts, { base: '.', read: false });
|
||||
|
||||
return target.pipe(inject(sources, { relative: true }))
|
||||
.pipe(gulp.dest('.'));
|
||||
});
|
||||
|
||||
gulp.task('default', ['clean', 'scripts', 'styles', 'images', 'fonts']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue