Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rollup-plugin-livereload

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-livereload - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

16

dist/index.cjs.js

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc