Add block of code which should be added to Gemfile for Windows listen compatibility.

Closes https://github.com/mojombo/jekyll/pull/1720
This commit is contained in:
David Silva Smith 2013-11-18 15:20:23 -05:00 committed by Parker Moore
parent 752a862c67
commit cbdadc83a1
1 changed files with 5 additions and 0 deletions

View File

@ -37,3 +37,8 @@ As of v1.3.0, Jekyll uses the `listen` gem to watch for changes when the
`--watch` switch is specified during a build or serve. While `listen` has
built-in support for UNIX systems, it requires an extra gem for compatibility
with Windows. Add the following to the Gemfile for your site:
{% highlight ruby %}
require 'rbconfig'
gem 'wdm', '~> 0.1.0' if RbConfig::CONFIG['target_os'] =~ /mswin|mingw/i
{% endhighlight %}