
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
browser-reload-plugin
Advanced tools
Automatically reload the browser page on every Webpack watch build
Automatically reload the browser page on every Webpack watch build
npm i -D browser-reload-plugin
In your development Webpack config:
+ const BrowserReloadPlugin = require('browser-reload-plugin')
module.exports = {
...,
plugins: [
+ new BrowserReloadPlugin()
]
}
That's it! 🎉 Just run your watch command to see it in action.
The plugin globally exposes a __browserReloadPlugin object that lets you configure the plugin at run-time.
enabled (true) - Whether to reload the browser on changes.retryWait (retryWait from plugin options) - How long to wait before re-trying a failed connection on the client-side.wsServer (ws://localhost:PORT) - The WebSocket server address.To recongiure at run-time, simply rewrite the object properties:
__browserReloadPlugin.enabled = false;
port (8080) - Port to bind the servert to. If unavailable, it falls back to a random available port.retryWait (5000) - How long to wait before re-trying a failed connection on the client-side.include (/\.js$/) - A pattern (string | RegExp | [string, RegExp]) to match entry-files to add the client-code to. This is useful if your app has multiple entry-points but you only want the reload client to be added to specific ones.exclude - A pattern (string | RegExp | [string, RegExp]) to exclude certain entry-points.No, it's designed specifically for Webpack watch mode.
No, HMR is far superior to this approach. Only use this plugin when you have a sophisticated application that doesn't work well with HMR but you'd still like to automate browser page reloads on build.
webpack-livereload-plugin requires adding a <script> tag to your HTML document in order to make live-reload work. This plugin automatically injects itself to the entry-points of your app, and doesn't require any additional setup apart from adding the plugin to the Webpack configuration. It's also much lighter & faster.
FAQs
Automatically reload the browser page on every Webpack watch build
The npm package browser-reload-plugin receives a total of 0 weekly downloads. As such, browser-reload-plugin popularity was classified as not popular.
We found that browser-reload-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.