Merge pull request #707 from 0dp/gulp3-rev-del

revision strategy
This commit is contained in:
Thomas A. Reinert 2018-06-25 23:47:19 +02:00 committed by GitHub
commit 93f4cfede7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,7 @@ var gulpSequence = require( 'gulp-sequence' );
var replace = require( 'gulp-replace' ); var replace = require( 'gulp-replace' );
var autoprefixer = require( 'gulp-autoprefixer' ); var autoprefixer = require( 'gulp-autoprefixer' );
var rev = require('gulp-rev'); var rev = require('gulp-rev');
var revDel = require('rev-del)';
// Configuration file to keep your code DRY // Configuration file to keep your code DRY
var cfg = require( './gulpconfig.json' ); var cfg = require( './gulpconfig.json' );
@ -102,6 +103,7 @@ gulp.task( 'rev', function() {
.pipe(rev()) .pipe(rev())
.pipe(gulp.dest('./')) // write rev'd assets to build dir .pipe(gulp.dest('./')) // write rev'd assets to build dir
.pipe(rev.manifest()) .pipe(rev.manifest())
.pipe(revDel({dest: './'}))
.pipe(gulp.dest('./')); // write manifest to build dir .pipe(gulp.dest('./')); // write manifest to build dir
}); });

View File

@ -51,6 +51,7 @@
"gulp-watch": "5.0.0", "gulp-watch": "5.0.0",
"merge2": "^1.2.1", "merge2": "^1.2.1",
"popper.js": "^1.12.9", "popper.js": "^1.12.9",
"rev-del": "^1.0.5",
"run-sequence": "^2.2.1", "run-sequence": "^2.2.1",
"undescores-for-npm": "^1.0.0", "undescores-for-npm": "^1.0.0",
"gulp-autoprefixer": "^5.0.0" "gulp-autoprefixer": "^5.0.0"