Skip to content

Commit 2bd49b3

Browse files
committed
Document options for generating non-digest assets
1 parent 857e781 commit 2bd49b3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@ 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-stupid-digest-assets gem](https://github.com/alexspeller/non-stupid-digest-assets).
158+
* Create [a rake task](https://github.com/rails/sprockets-rails/issues/49#issuecomment-20535134) to pre-generate a non-digest version in `public/`.
159+
153160
## Experimental
154161

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

0 commit comments

Comments
 (0)