Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/weivea/gulp-rev-stable
基于gulp-rev的功能添加
https://github.com/weivea/gulp-rev-stable
Last synced: about 10 hours ago
JSON representation
基于gulp-rev的功能添加
- Host: GitHub
- URL: https://github.com/weivea/gulp-rev-stable
- Owner: weivea
- Created: 2016-04-19T08:05:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-04-19T08:37:49.000Z (over 8 years ago)
- Last Synced: 2024-08-09T16:19:44.929Z (3 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gulp-rev-stable
基于gulp-rev的功能添加## Install
```
npm install --save-dev gulp-rev-stable
```## Usage
```
var gulp = require('gulp');
var rev = require('gulp-rev-stable');//原来用法可以不变
gulp.task('default', function () {
return gulp.src('src/*.css')
.pipe(rev())
.pipe(gulp.dest('dist'));
});//保持版本不变化时
gulp.task('default', function () {
return gulp.src('src/*.css')
.pipe(rev({stable:true,pth:'dist/rev-manifest.json'}))
.pipe(gulp.dest('dist'));
});//执行后,会多一个rev-manifest-changeList.json来记录哪些文件是被修改而版本没改变
//新增的文件按照原来的方式打版本处理```
这个修改是为了适应自己的web构建工具,其它开发者用不到请继续支持gulp-rev