README.md in lookbook-0.8.0.beta.0 vs README.md in lookbook-0.8.0
- old
+ new
@@ -539,11 +539,11 @@
# config/application.rb
config.lookbook.page_options = {
footer: false,
data: {
brand_colors: {
- red: #ff0000
+ red: "#ff0000"
}
}
}
```
@@ -702,11 +702,13 @@
```
If you wish to run this as part of your existing assets precompilation step, you can add the following into your app's `Rakefile`:
```ruby
-Rake::Task['assets:precompile'].enhance do
- Rake::Task["lookbook:previews:preparse"].invoke
+if Rails.env.production?
+ Rake::Task['assets:precompile'].enhance do
+ Rake::Task["lookbook:previews:preparse"].invoke
+ end
end
```
The pre-parsing of preview files will then take place every time `rake assets:precompile` is called and so will not need to be run separately.