UNPKG

1.17 kBTypeScriptView Raw
1import { Plugin } from 'rollup'
2
3export interface RollupLivereloadOptions {
4 /** Defaults to current directory */
5 watch?: string | string[]
6
7 /**
8 * Inject the livereload snippet into the bundle which will enable livereload
9 * in your web app.
10 * Defaults to true
11 */
12 inject?: boolean
13
14 /**
15 * Log a message to console when livereload is ready
16 * Defaults to true
17 */
18 verbose?: boolean
19
20 ///
21 /// Find all livereload options here:
22 /// https://www.npmjs.com/package/livereload#user-content-server-api
23 ///
24
25 /**
26 * The listening port.
27 * It defaults to 35729 which is what the LiveReload extensions use currently.
28 */
29 port?: number
30
31 /**
32 * Add a delay (in milliseconds) between when livereload detects a change to
33 * the filesystem and when it notifies the browser. Useful if the browser is
34 * reloading/refreshing before a file has been compiled.
35 */
36 delay?: number
37
38 /** Livereload options, improvements welcome */
39 [livereloadOption: string]: any
40}
41
42/**
43 * 🔄 A Rollup plugin for including livereload in your web app.
44 */
45export default function livereload(
46 options?: RollupLivereloadOptions | string
47): Plugin
48
\No newline at end of file