Installations
npm install @kooneko/livereload-webpack-plugin
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
14.15.4
NPM Version
6.14.10
Score
46.1
Supply Chain
68.1
Quality
72.5
Maintenance
100
Vulnerability
99.3
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
Kooneko
Download Statistics
Total Downloads
191,886
Last Day
89
Last Week
827
Last Month
5,125
Last Year
46,997
GitHub Statistics
5 Stars
16 Commits
1 Forks
2 Watching
1 Branches
1 Contributors
Package Meta Information
Latest Version
1.2.1
Package Id
@kooneko/livereload-webpack-plugin@1.2.1
Unpacked Size
22.07 kB
Size
6.82 kB
File Count
16
NPM Version
6.14.10
Node Version
14.15.4
Total Downloads
Cumulative downloads
Total Downloads
191,886
Last day
-68%
89
Compared to previous day
Last week
-28.6%
827
Compared to previous week
Last month
-2.4%
5,125
Compared to previous month
Last year
-17.7%
46,997
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
livereload-webpack-plugin
This plugin for Webpack is based from statianzo's plugin : webpack-livereload-plugin
This plugin is compatible wih Webpack 4 & Webpack 5
Installation
Install the package
1npm install --save-dev @kooneko/livereload-webpack-plugin
Add the plugin to your webpack config
1// webpack.config.js 2 3var LiveReloadWebpackPlugin = require('@kooneko/livereload-webpack-plugin'); 4 5module.exports = { 6 plugins: [ 7 new LiveReloadWebpackPlugin(options) 8 ] 9}
Add a script tag to your page pointed at the livereload server
1<script src="http://localhost:35729/livereload.js"></script>
Options
Option | Default | Description |
---|---|---|
protocol | protocol of the page, either http or https | Protocol for livereload <script> src attribute value |
port | 35729 | The desired port for the livereload server. If you not define port, an available port will be searched for, starting from 35729 |
hostname | hostname of the page, like localhost or 10.0.2.2 | The desired hostname for the appended <script> (if present) to point to |
quiet | false | Prevent message " Live reload listening on port ..." from appearing in the console |
appendScript | false | Append livereload <script> automatically to <head> |
delay | 0 | amount of milliseconds by which to delay the live reload (in case build takes longer) |
ignore | null | RegExp of files to ignore. Null value means ignore nothing. It is also possible to define an array and use multiple anymatch patterns |
Why?
Yes, there's already webpack-dev-server
that handles live reloading
and more complex scenarios. This project aims to solve the case where
you want assets served by your app server, but still want reloads
triggered from webpack's build pipeline.
HTTPS
If you set key
, cert
, or pfx
options, they'll get passed through to
tiny-lr as options and it will
serve over HTTPS. You'll also also set protocol
to https
.
FAQ
Webpack always generates js and css together
If this slows your build process you could set liveCSS
and liveImg
to false
to prevent multiple reloads.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENCE:0
- Info: FSF or OSI recognized license: ISC License: LICENCE:0
Reason
Found 0/14 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 2 are checked with a SAST tool
Reason
28 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc
- Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j
- Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
- Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh
Score
1.7
/10
Last Scanned on 2024-12-23
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