diff --git a/middleman-core/lib/middleman-core/templates/empty/Gemfile.tt b/middleman-core/lib/middleman-core/templates/empty/Gemfile.tt index 2dadbf76..f78d3f5b 100644 --- a/middleman-core/lib/middleman-core/templates/empty/Gemfile.tt +++ b/middleman-core/lib/middleman-core/templates/empty/Gemfile.tt @@ -2,6 +2,9 @@ source 'https://rubygems.org' gem "middleman", "~><%= Middleman::VERSION %>" +# For faster file watcher updates on Windows: +gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw] + # Cross-templating language block fix for Ruby 1.8 platforms :mri_18 do gem "ruby18_source_location" diff --git a/middleman-core/lib/middleman-core/templates/shared/Gemfile.tt b/middleman-core/lib/middleman-core/templates/shared/Gemfile.tt index 35f99031..39cb9cb8 100644 --- a/middleman-core/lib/middleman-core/templates/shared/Gemfile.tt +++ b/middleman-core/lib/middleman-core/templates/shared/Gemfile.tt @@ -7,8 +7,8 @@ gem "middleman", "~><%= Middleman::VERSION %>" # Live-reloading plugin gem "middleman-livereload", "~> 3.1.0" -# For faster file watcher updates: -# gem "wdm", "~> 0.1.0") # Windows +# For faster file watcher updates on Windows: +gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw] # Cross-templating language block fix for Ruby 1.8 platforms :mri_18 do