2.0.0 • Published 7 years ago
gulp-vg v2.0.0
gulp-vg
Gulp plugin for long term caching static files. Renames files: file.ext => ia-Gd5r_5P3C8IwhDTkpEC7rQI.ext
Install
npm install gulp-vg --save-dev
Usage
const gulp = require('gulp')
const vg = require('gulp-vg')
gulp.task('default', () => {
return gulp.src('src/*.{svg,css,js}')
.pipe(vg.digest())
.pipe(gulp.dest('dest'));
})
API
vg.createManifest(...paths)
- @param {...String} paths Paths to files
- @return {Object} Collection, __proto__ === null
Creates a manifest from the contents of json files
vg.digest(path)
- @param {String} path Path to file, to save the result
- @return {Stream}
Renames files: file.ext => ia-Gd5r_5P3C8IwhDTkpEC7rQI.ext
License
MIT © Platonov Anton