anilkumarum / crx-hmr

Chrome extension hot Modules Reloader
MIT License
1 stars 0 forks source link

crx-hmr

Chrome extension hot Modules Reloader\ 💡 Instant Server Start\ ⚡️ Lightning Fast HMR\ 🔄 auto-reload chrome extension

NPM

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

  1. Manual reload chrome extension.
  2. Close and reopen popup window to view change.
  3. Need to refresh tab to view change.

Get started

npm create crx-hmr

from source code

Grab client.js and server.js file from github \ then add client.js with chrome extension page.\ rename server.js to server.mjs For start server: npm start

Usage

Start HMR server\ crx-hmr start

Note: not test with windows/macos

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.