Skip to content

Commit

Permalink
Merge pull request #428 from mvz/document-non-digest-options
Browse files Browse the repository at this point in the history
Document options for generating non-digest assets
  • Loading branch information
rafaelfranca authored Jun 28, 2018
2 parents 49bf802 + f82435b commit aef238b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,15 @@ The following plugins provide some extras for the Sprockets Asset Pipeline.
* `config.assets.manifest` (if used) must now include the manifest filename, e.g. `Rails.root.join('config/manifest.json')`. It cannot be a directory.
* Two cleanup tasks: `rake assets:clean` is now a safe cleanup that only removes older assets that are no longer used, while `rake assets:clobber` nukes the entire `public/assets` directory. The clean task allows for rolling deploys that may still be linking to an old asset while the new assets are being built.

### But what if I want sprockets to generate non-digest assets?

You have several options:

* Use the [non-digest-assets gem](https://github.com/mvz/non-digest-assets).
* Use the [sprockets-redirect gem](https://github.com/sikachu/sprockets-redirect).
* Use the [smart_assets gem](https://github.com/zarqman/smart_assets).
* Create [a rake task](https://github.com/rails/sprockets-rails/issues/49#issuecomment-20535134) to pre-generate a non-digest version in `public/`.

## Experimental

### [SRI](http://www.w3.org/TR/SRI/) support
Expand Down

0 comments on commit aef238b

Please sign in to comment.