Skip to content

Latest commit

 

History

History
66 lines (42 loc) · 1.02 KB

File metadata and controls

66 lines (42 loc) · 1.02 KB

Powered by Extension.js

JavaScript Sidebar Example

JavaScript-based extension with a sidebar panel.

Starter extension with a sidebar panel. Includes dev, build, and preview scripts.

Installation

npx extension@latest create <project-name> --template javascript
cd <project-name>
npm install

Commands

dev

Run the extension in development mode.

npm run dev

build

Build the extension for production.

npm run build

preview

Preview the extension in the browser.

npm run preview

Browser targets

Chromium is the default. You can explicitly target Chrome, Edge, or Firefox:

# Chromium (default)
npm run dev

# Chrome
npm run dev -- --browser=chrome

# Edge
npm run dev -- --browser=edge

# Firefox
npm run dev -- --browser=firefox

Learn more

Learn more in the Extension.js docs.