-
Notifications
You must be signed in to change notification settings - Fork 1
Development Guide
Queen Belle Dela Cruz edited this page Aug 1, 2024
·
10 revisions
- Install dependencies:
npm install react react-dom #react npm install -D webpack webpack-cli copy-webpack-plugin html-webpack-plugin #bundler and plugins npm install -D babel-loader @babel/core @babel/preset-env webpack #to load JSX files npm install -D css-loader file-loader style-loader #to load styling and images
- Make your changes in the code.
- Build and compile extension:
npm run watch
- Reload the extension in Chrome to see the updates.
Chrome DevTools extensions consist of several key components:
- Manifest File: Defines the extension’s permissions, background scripts, and DevTools page.
- DevTools Page: HTML and JavaScript files that create the custom DevTools panel.
- Content Scripts: Scripts that run in the context of the web page being inspected.
- Background Scripts: Handle events and manage the extension's background logic.