ReferenceError: revision is not defined
This commit is contained in:
parent
28525f4509
commit
d4b5532a36
|
@ -145,7 +145,7 @@ gulp.task( 'clean-dist', function() {
|
||||||
return del( ['dist/**/*', '!dist'] );
|
return del( ['dist/**/*', '!dist'] );
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task( 'revision', function(done) {
|
function revision( done ) {
|
||||||
// by default, gulp would pick `assets/css` as the base,
|
// by default, gulp would pick `assets/css` as the base,
|
||||||
// so we need to set it explicitly:
|
// so we need to set it explicitly:
|
||||||
gulp.src([paths.css + '/theme.min.css', paths.js + '/theme.min.js'], {base: './'})
|
gulp.src([paths.css + '/theme.min.css', paths.js + '/theme.min.js'], {base: './'})
|
||||||
|
@ -155,7 +155,9 @@ gulp.task( 'revision', function(done) {
|
||||||
.pipe(revDel({dest: './'}))
|
.pipe(revDel({dest: './'}))
|
||||||
.pipe(gulp.dest('./')); // write manifest to build dir
|
.pipe(gulp.dest('./')); // write manifest to build dir
|
||||||
done();
|
done();
|
||||||
});
|
};
|
||||||
|
|
||||||
|
exports.revision = revision;
|
||||||
|
|
||||||
// Run
|
// Run
|
||||||
// gulp dist
|
// gulp dist
|
||||||
|
|
Reference in New Issue