1.0.5 • Published 7 years ago

gulp-css-assets-hash v1.0.5

Weekly downloads
237
License
ISC
Repository
github
Last release
7 years ago

Feature

为css中引用的png,jpg,gif图片路径增加hash,hash只有在图片修改后才会变化。

background-image: url("./a.jpg");
=>
background-image: url("./a.jpg?_=f7a915c");

Install

npm install gulp-css-assets-hash

Options

ignoreWarn

忽略找不到图片的警告,默认为 false

Example

var gulp = require('gulp');
var hash = require('gulp-css-assets-hash');

gulp.task('default', function () {
	gulp.src('src/a.css')
		.pipe(hash())
		.pipe(gulp.dest('dist'));
})
1.0.5

7 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago