
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.
hot-reload-extension-vite
Advanced tools
This Vite plugin offers an effortless solution for seamlessly refreshing a Chrome extension built on Manifest V3. With this plugin, you can streamline the development and testing process, ensuring your extension stays up-to-date without manual intervention.
Inspired by stackoverflow answer and other similar repos.
$ npm i hot-reload-extension-vite -D
import hotReloadExtension from 'hot-reload-extension-vite';
export default {
plugins: [
hotReloadExtension({
log: true,
backgroundPath: 'path/to/background' // src/pages/background/index.ts
})
]
};
Then run
$ NODE_ENV=development vite build --watch // Override NODE_ENV
Extension will only reload when NODE_ENV is 'development'
Options | Type | Description |
---|---|---|
log | boolean (optional) | Logs error and info. |
backgroundPath | string (required) | Path to background service worker file. |
Variable | default | Description |
---|---|---|
HOT_RELOAD_EXTENSION_VITE_PORT | 8080 | Web socket port |
MIT
FAQs
Simple vite plugin to reload the chrome extension.
The npm package hot-reload-extension-vite receives a total of 340 weekly downloads. As such, hot-reload-extension-vite popularity was classified as not popular.
We found that hot-reload-extension-vite 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
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.