Demo: B Words Replacer
Compile to runnable files of Chrome Extension
- ts --> js
- pug --> html
- scss --> css
- Yarn
- Yarn
ts:c
orts:w
for typescript compilation - Yarn
pug:b
orpug:w
for Pug compilation - scss --> css (manually or by FileWatcher in IDE)
- background.ts reponsible for communication (messaging) between the Extension UI and the web page UI
- Extension UI is popup.html and popup.js
- Web page content script is handled in searchreplace.js
popup.js (popup, UI) <---> background.js (messaging) <---> searchreplace.js (functions)