ReferenceError: revision is not defined

This commit is contained in:
Johan Nielsen 2018-06-29 11:58:55 +02:00 committed by GitHub
parent 28525f4509
commit d4b5532a36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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