1.0.4 • Published 3 years ago
vite-plugin-crx-hot-reload v1.0.4
Introduce
This is a vite plugin that helps Chrome extensions to refresh automatically when files are modified in development.
Install
pnpm install vite-plugin-crx-hot-reload -D
Usage
import crxHotReload from 'vite-plugin-crx-hot-reload'
export default {
plugins: [crxHotReload(/* plugin options */)]
}
Plugin options
port
- Type:
number
- Default:
8181
Establish a Socket Connection. Send a message to the Chrome extension client to update when a file changes.
input
- Type:
string
- Required :
true
Manifest file for Chrome extension.
Example:
crxHotReload({
input: './src/manifest.json'
})
Notes
- When in a development environment,
build.emptyOutDir
needs to be set tofalse
in the vite configuration file. - After starting the project, if the page does not refresh automatically after modifying content_scripts, you may need to refresh the page manually first.
1.0.2
3 years ago
1.0.1
3 years ago
1.0.3-beta.0
3 years ago
1.0.1-beta.2
3 years ago
1.0.3-beta.1
3 years ago
1.0.1-beta.1
3 years ago
1.0.1-beta.0
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.0
3 years ago
0.0.4
3 years ago
0.1.0-beta.1
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago