webpack-livereload-plugin
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -10,3 +10,3 @@ /* jshint node:true */ | ||
this.lastHash = null; | ||
this.hostname = this.hostname || 'localhost'; | ||
this.hostname = this.options.hostname || 'localhost'; | ||
this.server = null; | ||
@@ -13,0 +13,0 @@ } |
{ | ||
"name": "webpack-livereload-plugin", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "Livereload for webpack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
12
test.js
@@ -65,1 +65,13 @@ var test = require('tape'); | ||
}); | ||
test('autoloadJs hostname defaults to localhost', function(t) { | ||
var plugin = new LiveReloadPlugin(); | ||
t.assert(plugin.autoloadJs().match(/localhost/)); | ||
t.end(); | ||
}); | ||
test('autoloadJs contains hostname option', function(t) { | ||
var plugin = new LiveReloadPlugin({hostname: 'example.com'}); | ||
t.assert(plugin.autoloadJs().match(/example.com/)); | ||
t.end(); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7506
158