Project directory structure
mainUnderstanding the folder layout is essential for organizing your extension code:
src- The main source directory.contentScript- Scripts and components to be injected ascontent_script.background- Scripts for the background context.components- Auto-imported Vue components shared in the popup and options page.styles- Styles shared in the popup and options page.assets- Assets used in Vue components.manifest.ts- The extension manifest configuration.
extension- The extension package root.assets- Static assets (primarily formanifest.json).dist- Built files (also serves as the stub entry for Vite during development).
scripts- Helper scripts for development and bundling.