This is a starter template for building Chrome extensions using Vue.js. It provides a basic structure and setup to help you get started quickly.
- Vue.js for building the user interface
- Tailwindcss for styling
- Widgets for content scripts
To get started with this starter template, follow these steps:
- Clone this repository:
git clone https://github.com/codespikex/vue-webext-starter.git - Install the dependencies:
pnpm install - Build the extension:
pnpm build - Load the extension in Chrome:
- Open Chrome and go to
chrome://extensions - Enable the "Developer mode" toggle
- Click on "Load unpacked" and select the
buildfolder in the cloned repository
- Open Chrome and go to
This starter template provides a basic structure for building Chrome extensions using Vue.js. The main files and folders are:
src/: Contains the source code for the extensionservice-worker.ts: Contains the service worker codecontent-script.ts: Contains the content script codepopup.ts: Contains the popup codecomponents/: Contains the Vue componentswidgets/: Contains the widgets for content scripts
utils/custom-elements.ts: Contains the code for defining custom elements
public/: Contains the public assets for the extensionassets/: Contains the assets for the extension
During development, you can use the following commands:
pnpm watch: Watches for changes and rebuilds the extensionnpm build: Builds the extension for production
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.