Adapted from https://github.com/BrunoCasotto/vue-chrome-extension-boilerplate
Install and run:
npm install
npm run dev
npm run build
Build:
npm run build
To configure extension manifest edit the file extension.config.js. See more here.
manifest: {
name: 'Extension Name',
description: 'Extension description here',
version: '1.0',
manifest_version: 3,
background: {
service_worker: 'background.js'
},
content_scripts: [],
permissions: [],
action: {
default_popup: 'index.html'
},
}
To configure your source files edit the entry parameter in extension.config.js
Example:
entry: {
main: './src/main.js',
background: './src/background.js',
content: './src/content.js'
}
- Clone the repository and run:
npm run dev
- Access extension chrome page:
chrome://inspect/#devices
-
Load the extension with "load unpacked" button
-
Select dist folder