
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@elderjs/plugin-browser-reload
Advanced tools
Reload your browser when your Elder.js server restarts.
Designed to work with the Elder.js Template and integrate browser reloading.
It works by adding a websocket on bootstrap. It then sets up a listener to that websocket on the client.
When the server is restarted due to a code change, the browser will restart as well.
npm install --save @elderjs/plugin-browser-reload
Once installed, open your elder.config.js
and configure the plugin by adding @elderjs/plugin-browser-reload
to your plugin object.
plugins: {
'@elderjs/plugin-browser-reload': {} // activates the plugin
}
Below are the default settings of the plugin. You can adjust them to your needs.
plugins: {
'@elderjs/plugin-browser-reload': {
origin: 'http://localhost',
port: 8080, // the port the websocket server should run on.
delay: 200, // the delay in ms the browser should wait after the server disappears.
preventReloadQS: 'noreload', // if 'noreload' is in the query string it won't reload that page. Good for CSS editing in the browser.
retryCount: 50, // number of tries the browser will check to see if the server is up before giving up.
},
}
FAQs
Reload your browser when your Elder.js server restarts.
We found that @elderjs/plugin-browser-reload demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.