Gathering detailed insights and metrics for rollup-plugin-livereload
Gathering detailed insights and metrics for rollup-plugin-livereload
Gathering detailed insights and metrics for rollup-plugin-livereload
Gathering detailed insights and metrics for rollup-plugin-livereload
npm install rollup-plugin-livereload
52.2
Supply Chain
99.5
Quality
75.5
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
161 Stars
122 Commits
45 Forks
4 Watching
5 Branches
19 Contributors
Updated on 20 Sept 2024
Minified
Minified + Gzipped
TypeScript (89.17%)
JavaScript (9.32%)
HTML (1.51%)
Cumulative downloads
Total Downloads
Last day
4.4%
14,819
Compared to previous day
Last week
17.8%
86,628
Compared to previous week
Last month
26.8%
309,579
Compared to previous month
Last year
0.1%
3,092,358
Compared to previous year
1
4
npm install --save-dev rollup-plugin-livereload
1// rollup.config.js 2import livereload from 'rollup-plugin-livereload' 3 4export default { 5 input: 'entry.js', 6 output: { file: 'bundle.js' }, 7 plugins: [livereload()], 8}
To make it a real dev-server, combine this plugin with rollup-plugin-serve.
1// rollup.config.js 2import serve from 'rollup-plugin-serve' 3import livereload from 'rollup-plugin-livereload' 4 5export default { 6 input: 'entry.js', 7 output: { file: 'bundle.js' }, 8 plugins: [ 9 serve(), // index.html should be in root of project 10 livereload(), 11 ], 12}
By default, it watches the current directory. If you also have css output, pass the folder to which the build files are written.
This plugin supports the following options:
clientUrl
: provide an alternative URL to the livereload.js
script/resource. This URL is always preferred over all other generated URLs.clientHostname
: alternative hostname used instead of localhost
or the site's current host, where the bundle is fetched from. Use this option when you include your bundle from a different host.All remaining options are passed to livereload.createServer()
.
Example:
livereload('dist')
// --- OR ---
livereload({
watch: 'dist',
verbose: false, // Disable console output
// other livereload options
port: 12345,
delay: 300,
https: {
key: fs.readFileSync('keys/agent2-key.pem'),
cert: fs.readFileSync('keys/agent2-cert.pem')
}
})
Please see CHANGELOG for more information what has changed recently.
Contributions and feedback are very welcome.
To get it running:
npm install
npm run build
The MIT License (MIT). Please see License File for more information.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 5/10 approved changesets -- score normalized to 5
Reason
9 existing vulnerabilities detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More