crx-hmr v0.2.1
crx-hmr
Chrome extension hot Modules Reloader\ š” Instant Server Start\ ā”ļø Lightning Fast HMR\ š auto-reload chrome extension\ š¦ No dependencies\ āļø custom elements support š Support both web extension and website
A file watcher server that watch file change and instant update \ changed file in chrome extension without full reload.
Benefits
With this package, you don't need to do
- Manual reload chrome extension.
- Close and reopen popup window to view change.
- Need to refresh tab to view change.
Get started
First create project directory (folder).\ If window os, open vs-code or open git-bash.
npm create crx-hmr@latest
From source code
Grab client.js and server.js file from github \
then add client.js on chrome extension page.\
For start server: npm start
Usage
Start HMR server\
crx-hmr start
Serve File
In chrome extension, we don't need to serve file.
For add HMR on website , add flag --fttp
example: node server.mjs --fttp
or npm start --fttp
Related
crx-build - chrome extension builder: minify and zip\ path-fixxer - Add npm packages in your extension.
License
crx-hmr is licensed under the MIT license.