tkm-ymmt
10/22/2014 - 6:06 PM

guard livereload init

# Guard-livereload 初期化
1. 
```
$  gem intall guard
```

2. xcodeのライセンスが云々言われるので従う

3.  再度
```
$  gem intall guard
```

4. 
```
$ gem install guard-livereload
```
5. Gemfile 編集
guard livereload[https://github.com/guard/guard-livereload]

6. 
```
$ guard init livereload
```

7. 
```
$ bundle exec guard
```

8. rack livereload も使いたい


Guardfile例
`````
guard 'livereload' do
  watch(%r{/**/.*\.(css|js|html)})
  # Rails Assets Pipeline
  # watch(%r{(app|vendor)(/assets/\w+/(.+\.(css|js|html|png|jpg))).*}) { |m| "/assets/#{m[3]}" }
end
`````