Re: Guard + LiveReload + CSS
Posted by
mojavelinux on
URL: https://discuss.asciidoctor.org/Guard-LiveReload-CSS-tp676p701.html
Charles,
If you are using the default stylesheet, you shouldn't need to set the stylesdir or stylesheet. You do, however, need to set the safe mode so that the copy feature is activated.
```ruby
guard 'shell' do
watch(/^mydoc\.adoc$/) {|m|
Asciidoctor.render_file m[0], :in_place => true, :safe => :unsafe, :attributes => 'linkcss'
}
end
```
As I mentioned in another thread, we're going to make sure to draw plenty of attention to the importance of setting the safe option.
-Dan