Sha256: 6f3408c5bf8ce70012921db076b69cef1c81c81f7f403ec0864e188af1473c32
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
# ActionView::RevManifest Let Rails load rev-manifest.json generated by [gulp-rev](https://github.com/sindresorhus/gulp-rev). ## Usage Add to your Gemfile: ```rb gem "actionview-rev_manifest" ``` Run: ``` bundle install ``` ## Setup ```rb # config/environments/production.rb MyApp::Application.config do config.rev_manifest.enabled = true end ``` ### With Sprockets If you want to serve some assets with RevManifest and rest of them with Sprockets, specify all sources' name, which you want to serve with RevManifest, as `config.rev_manifest.sources`: ```rb MyApp::Application.config do config.rev_manifest.sources = ["new_application.js", "new_application.css"] end ``` ## Sample gulpfile.coffee ```coffee gulp = require "gulp" rev = require "gulp-rev" gulp.task "precompile", -> gulp.src([ "public/assets/javascripts/*.js", "public/assets/stylesheets/*.css" ], base: "public") .pipe(rev()) .pipe(gulp.dest("public")) .pipe(rev.manifest()) .pipe(gulp.dest("public/assets")) ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
actionview-rev_manifest-0.2.1 | README.md |