Chrome extension development template based on Vite, Vue.js and rollup-plugin-chrome-extension.
$ npx degit keyding/vite-crx-vue new-project
Preferred package manager is pnpm, but npm or Yarn should work.
# /new-project
# pnpm (recommend)
pnpm install
# npm
npm install
# yarn
yarn install
# The compiled directory is /dist.
# Then add the extension to Chrome
pnpm dev
# build and zip.
# The release directory is /releases
pnpm build
# bump version, build and zip.
# The release directory is /releases
pnpm release
- ✨ Vite HMR
- ✨ Zip your extension when you release with rollup-plugin-zip
For more please refer to Vite, Vue.js and rollup-plugin-chrome-extension.
🙏 Thank to Vite, Vue.js and rollup-plugin-chrome-extension.