README.md in middleman-livereload-3.4.3 vs README.md in middleman-livereload-3.4.4
- old
+ new
@@ -9,11 +9,11 @@
```
gem install middleman
middleman init MY_PROJECT
```
-If you already have a Middleman project: Add `gem "middleman-livereload", "~> 3.3.0"` to your `Gemfile` and run `bundle install`
+If you already have a Middleman project: Add `gem "middleman-livereload", "~> 3.4.3"` to your `Gemfile` and run `bundle install`
## Configuration
```
activate :livereload
@@ -27,10 +27,14 @@
#### `:host` and `:port`
Livereload's listener host/port, these options get passed to ::Rack::LiveReload middleware. Defaults:`'0.0.0.0'` and `'35729'`.
+#### `:js_host` and `:js_port`
+
+Similar to the `:host` and `:port` options, but allow you to specify a different host and port at the frontend Javascript level than at the backend EventMachine level. Useful when running behind a proxy or on a Docker VM. Defaults to `:host` and `:port`.
+
#### `:apply_js_live` and `:apply_css_live`
Whether live reload should attempt to reload javascript / css 'in-place', without complete reload of the page. Both default to `true`.
:warning: It does *not* work with `@import`'ed CSS files or `require`'d JS files (because of LiveReload not providing enough information regarding dependencies). On those kind of files, a full page reload will be triggered.
@@ -40,9 +44,19 @@
Disable Flash polyfil for browsers that support native WebSockets.
#### `:ignore`
Array of patterns for paths that must be ignored. These files will not be injected with the LiveReload script.
+
+#### `:livereload_css_target`
+
+CSS file to reload when detecting @imported partial was modified. Default `stylesheets/all.css`).
+To opt out set `livereload_css_target: nil`.
+
+#### `:livereload_css_pattern`
+
+Regexp matching filenames that should trigger reload of :livereload_css_target when changed. Default: `Regexp.new('_.*\.css')`.
+
## Build & Dependency Status
[][gem]
[][travis]