0.2.1 ā€¢ Published 1 year ago

crx-hmr v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

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

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.

0.2.1

1 year ago

0.2.0

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.1

1 year ago