1.0.1 • Published 6 years ago

gulp-file-url-update v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

gulp-file-url-update

md5 plugin for gulp ,md5 the static files(eg javascript style image files) ;then replace the filenames in css or the html if needed by passing the file or dir in the second parameter

Usage

First, install gulp-file-url-update as a development dependency:

npm install --save-dev gulp-file-url-update

Then, add it to your gulpfile.js:

var md5 = require("gulp-file-url-update");

gulp.src("./src/*.css")
	.pipe(md5('./output/index.html', {size:10}))
	.pipe(gulp.dest("./dist"));

License

http://en.wikipedia.org/wiki/MIT_License[MIT License]