Skip to content

Commit aef238b

Browse files
authored
Merge pull request #428 from mvz/document-non-digest-options
Document options for generating non-digest assets
2 parents 49bf802 + f82435b commit aef238b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,15 @@ The following plugins provide some extras for the Sprockets Asset Pipeline.
150150
* `config.assets.manifest` (if used) must now include the manifest filename, e.g. `Rails.root.join('config/manifest.json')`. It cannot be a directory.
151151
* 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.
152152

153+
### But what if I want sprockets to generate non-digest assets?
154+
155+
You have several options:
156+
157+
* Use the [non-digest-assets gem](https://github.com/mvz/non-digest-assets).
158+
* Use the [sprockets-redirect gem](https://github.com/sikachu/sprockets-redirect).
159+
* Use the [smart_assets gem](https://github.com/zarqman/smart_assets).
160+
* Create [a rake task](https://github.com/rails/sprockets-rails/issues/49#issuecomment-20535134) to pre-generate a non-digest version in `public/`.
161+
153162
## Experimental
154163

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

0 commit comments

Comments
 (0)