Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@crxjs/vite-plugin

crxjs196.5kMIT1.0.14TypeScript support: included

Build Chrome Extensions with this Vite plugin.

rollup-plugin, vite-plugin, chrome, chrome-extension, extension, webext, webextension, browser, browser-extension

readme

CRXJS

What is CRXJS?

CRXJS is a project to bring a modern developer experience to the Chrome Extension ecosystem. This repo houses two bundling libraries: a modern Vite plugin and a legacy Rollup plugin.

Get Started in 90 seconds.

Features

If you're starting a new Chrome Extension project, consider using @crxjs/vite-plugin. This Vite plugin brings all the features of Vite to the Chrome Extension developer experience.

| | @crxjs/vite-plugin | rollup-plugin-chrome-extension | | :---------------------------- | :-----------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------: | | Works on | Vite ⚡ | Rollup | | Simple Config | Yes | Yes | | HMR | True HMR | Auto-reload | | Static Asset Imports | Yes | With config | | MV3 | Yes | Yes | | MV2 | - | Yes | | Auto Web-accessible Resources | Yes | - | | Documentation | CRXJS Vite Plugin Docs | Extend Chrome Docs | | NPM | npm (scoped) | npm (scoped) |

Supporting

If these plugins have helped you ship your product faster, please consider sponsoring me on GitHub.

Contributing

We encourage pull requests! This is a pnpm monorepo, so use pnpm instead of Yarn or npm.