https://github.com/joker1007/gulp-rev-rails-manifest
Write gulp-rev manifest.json that is Rails assets helper compatible
https://github.com/joker1007/gulp-rev-rails-manifest
Last synced: about 2 months ago
JSON representation
Write gulp-rev manifest.json that is Rails assets helper compatible
- Host: GitHub
- URL: https://github.com/joker1007/gulp-rev-rails-manifest
- Owner: joker1007
- License: mit
- Created: 2014-09-16T19:07:13.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-23T06:25:19.000Z (almost 10 years ago)
- Last Synced: 2025-03-23T16:42:32.543Z (2 months ago)
- Language: CoffeeScript
- Homepage:
- Size: 143 KB
- Stars: 25
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [gulp](https://github.com/wearefractal/gulp)-rev-rails-manifest
[](https://travis-ci.org/joker1007/gulp-rev-rails-manifest)Write [gulp-rev](https://github.com/sindresorhus/gulp-rev "sindresorhus/gulp-rev") manifest.json that is Rails assets helper compatible
## Install
```bash
$ npm install --save-dev gulp-rev-rails-manifest
```## Usage
```js
var gulp = require('gulp');
var rev = require('gulp-rev');
var manifest = require('gulp-rev-rails-manifest');gulp.task('default', function () {
return gulp.src(['assets/css/*.css', 'assets/js/*.js'], {base: 'assets'})
.pipe(rev())
.pipe(gulp.dest('build/assets')) // write rev'd assets to build dir
.pipe(manifest())
.pipe(gulp.dest('build/assets')); // write manifest to build dir
});
```