gulp-rev-format-re

0.0.1 • Public • Published

build status

gulp-rev-format-re

formatting file names generated by gulp-rev.

Getting Started

Install

$ npm install gulp-rev-format-re --save-dev

Usage

formatting file names generated by gulp-rev in any form using revision and original filename. new filenames are defined with format params [% %].

const rev = require('gulp-rev');
const format = require('gulp-rev-format-re');
 
gulp.task('default', () => {
    gulp.src('./src/*.*')
        .pipe(rev())
        .pipe(format('[% rev %].[% filename %]'))
        .pipe(gulp.dest('./dist'))
        .pipe(rev.manifest())
        .pipe(gulp.dest('./dist'));
});

Parameters

  • [% filename %] : original filename
  • [% rev %] : revision added by gulp-rev

License

The MIT License (MIT)

Copyright 2017~ moshisora

Dependencies (3)

Dev Dependencies (4)

Package Sidebar

Install

npm i gulp-rev-format-re

Weekly Downloads

16

Version

0.0.1

License

MIT

Last publish

Collaborators

  • moshisora