1

Handling build deps, ignoring dist and dev files

This commit is contained in:
Alex Yatskov 2014-10-02 13:26:58 +09:00
parent 4b3278d2c4
commit def0afa97b
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
node_modules node_modules
bower_components bower_components
cache cache
dev
dist

View File

@ -75,7 +75,7 @@ gulp.task('html_debug', function() {
.pipe(gulp.dest('dev')); .pipe(gulp.dest('dev'));
}); });
gulp.task('html_release', function() { gulp.task('html_release', ['scripts', 'styles'], function() {
var sources = gulp.src(['dist/*.js', 'dist/*.css'], { read: false }); var sources = gulp.src(['dist/*.js', 'dist/*.css'], { read: false });
return gulp.src(paths.html) return gulp.src(paths.html)
.pipe(inject(sources, { addRootSlash: false, ignorePath: 'dist' })) .pipe(inject(sources, { addRootSlash: false, ignorePath: 'dist' }))