rollup-plugin-livereload
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -12,14 +12,14 @@ 'use strict'; | ||
watch: options | ||
} | ||
}; | ||
} | ||
var enabled = options.verbose !== false | ||
var port = options.port || 35729 | ||
var server = livereload.createServer(options) | ||
var enabled = options.verbose !== false; | ||
var port = options.port || 35729; | ||
var server = livereload.createServer(options); | ||
// Start watching | ||
if (Array.isArray(options.watch)) { | ||
server.watch(options.watch.map(function (w) { return path.resolve(process.cwd(), w); })) | ||
server.watch(options.watch.map(function (w) { return path.resolve(process.cwd(), w); })); | ||
} else { | ||
server.watch(path.resolve(process.cwd(), options.watch)) | ||
server.watch(path.resolve(process.cwd(), options.watch)); | ||
} | ||
@@ -32,4 +32,4 @@ | ||
if (!enabled) { | ||
enabled = true | ||
console.log(green('LiveReload enabled')) | ||
enabled = true; | ||
console.log(green('LiveReload enabled')); | ||
} | ||
@@ -36,0 +36,0 @@ } |
@@ -10,14 +10,14 @@ import { createServer } from 'livereload'; | ||
watch: options | ||
} | ||
}; | ||
} | ||
var enabled = options.verbose !== false | ||
var port = options.port || 35729 | ||
var server = createServer(options) | ||
var enabled = options.verbose !== false; | ||
var port = options.port || 35729; | ||
var server = createServer(options); | ||
// Start watching | ||
if (Array.isArray(options.watch)) { | ||
server.watch(options.watch.map(function (w) { return resolve(process.cwd(), w); })) | ||
server.watch(options.watch.map(function (w) { return resolve(process.cwd(), w); })); | ||
} else { | ||
server.watch(resolve(process.cwd(), options.watch)) | ||
server.watch(resolve(process.cwd(), options.watch)); | ||
} | ||
@@ -30,4 +30,4 @@ | ||
if (!enabled) { | ||
enabled = true | ||
console.log(green('LiveReload enabled')) | ||
enabled = true; | ||
console.log(green('LiveReload enabled')); | ||
} | ||
@@ -34,0 +34,0 @@ } |
{ | ||
"name": "rollup-plugin-livereload", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Rollup plugin for LiveReload that watches the bundle and reloads the page on change", | ||
@@ -34,6 +34,6 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"livereload": "^0.5.0" | ||
"livereload": "^0.6.0" | ||
}, | ||
"devDependencies": { | ||
"rollup": "^0.36.0", | ||
"rollup": "^0.36.3", | ||
"rollup-plugin-buble": "^0.14.0", | ||
@@ -40,0 +40,0 @@ "rollup-watch": "^2.5.0" |
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
7493
+ Addedlivereload@0.6.3(transitive)
+ Addedws@1.1.5(transitive)
- Removedbindings@1.2.1(transitive)
- Removedbufferutil@1.2.1(transitive)
- Removedlivereload@0.5.0(transitive)
- Removednan@2.4.0(transitive)
- Removedutf-8-validate@1.2.2(transitive)
- Removedws@0.8.1(transitive)
Updatedlivereload@^0.6.0