Handling build deps, ignoring dist and dev files
This commit is contained in:
parent
4b3278d2c4
commit
def0afa97b
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
|||||||
node_modules
|
node_modules
|
||||||
bower_components
|
bower_components
|
||||||
cache
|
cache
|
||||||
|
dev
|
||||||
|
dist
|
||||||
|
@ -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' }))
|
||||||
|
Loading…
Reference in New Issue
Block a user