English | ็ฎไฝไธญๆ | ็น้ซไธญๆ
Start a chrome extension project with Vue-CLI with ease!
support vue2 vue3 TypeScript and JavaScript!
vue-cli 5.0.1 or higher
This plugin is meant for using new project for chrome extensions. Tested on default project of Vue, Vue with TypeScript
vue create <project-name>
# Answer some questions
cd <project-name>
vue add chrome-extension-cli
# Answer some questions
# ๐
.
โโโ public
โ โโโ can set image.
โโโ src/
โ โโโ assets
โ โ โโโ Static assets
โ โโโ entry
โ โ โโโ options.js
โ โ โโโ popup.js
| | โโโ devtools.js
โ โ โโโ content.js
โ โ โโโ background.js
โ โโโ view
โ โ โโโ popup.vue
โ โ โโโ options.vue
| | โโโ devtools.vue
โ โโโ manifest.development.json
โ โโโ manifest.production.json
โโโ vue.config.js
-
Run development mode with
npm run build-watchand adistfile will be generated. Install Extension Reloader to reload chrome extensions easily everytime you reload. (take note that when u change manifest.json file, it will not automatically load, you need to click update extension ) -
Build for production
npm run buildand zip it and deploy onto chrome store.
Vue CLI prompt is based on inquirer.js api.

