A Rollup plugin that wraps live-server to provide a webpack-dev-server-like experience with live reload. Current stable version is 2.0.0. Release cadence is low (last release 2019). Key differentiator: leverages live-server's mature feature set (HTTPS, mounting, open browser, etc.) without reinventing the wheel. Unlike rollup-plugin-serve, it provides live reload via WebSocket injection into HTML files. Suitable for development builds but not actively maintained.
npm install rollup-plugin-live-serverVerified import paths — ran on the pinned version, not inferred.
Shows how to configure and use the plugin in a Rollup config, including common options like port, root, and file.
Refer to https://www.npmjs.com/package/live-server for full option list.
Consider alternatives like rollup-plugin-serve or @web/dev-server.
Run npm install --save-dev live-server.
Use mount: [['/from', '/to']] format.
Ensure file is relative, e.g., 'index.html' instead of '/absolute/path/index.html'.
Run: npm install --save-dev live-server
Use: import { liveServer } from 'rollup-plugin-live-server';Change mount to an array of tuples: mount: [['/from', '/to']]
Change the port option or kill the other process.