Update readme to explain the prefix option
This commit is contained in:
parent
94b74a6811
commit
2c81cebfc3
13
README.md
13
README.md
@ -23,6 +23,19 @@ Add guard definition to your `Guardfile` by running:
|
||||
$ bundle exec guard init rails-assets
|
||||
```
|
||||
|
||||
## Configuration for Jasmine
|
||||
In order to make it work better with Jasmine it is recommended to explicitly move files precompiled for testing into a separate directory.
|
||||
This way it doesn't conflict with any files in `public/assets`.
|
||||
|
||||
This is optional and you can skip it for now.
|
||||
|
||||
Bu if you are in for that, then:
|
||||
|
||||
1. Add the option `config.assets.prefix = 'public/assets-test'` to `config/environments/test.rb` .
|
||||
2. Replace all `public/assets` with `public/assets-test` in `spec/javascripts/support/jasmine.yml`.
|
||||
3. Add `public/assets*` to your `.gitignore` (if you haven't yet).
|
||||
|
||||
|
||||
## Options
|
||||
|
||||
In addition to the guard configuration, `guard-rails-assets` has options to specify when exacly to precompile assets.
|
||||
|
Loading…
Reference in New Issue
Block a user