/sample-background-action-type

Extension.js sample using a browser action listener in the background

Primary LanguageTypeScript

[templateName]

An Extension.js example.

Available Scripts

In the project directory, you can run the following scripts:

pnpm dev

Development Mode: This command runs your extension in development mode. It will launch a new browser instance with your extension loaded. The page will automatically reload whenever you make changes to your code, allowing for a smooth development experience.

pnpm dev

pnpm start

Production Preview: This command runs your extension in production mode. It will launch a new browser instance with your extension loaded, simulating the environment and behavior of your extension as it will appear once published.

pnpm start

pnpm build

Build for Production: This command builds your extension for production. It optimizes and bundles your extension, preparing it for deployment to the target browser's store.

pnpm build

Learn More

To learn more about creating cross-browser extensions with Extension.js, visit the official documentation.