Skip to content

Latest commit

ย 

History

63 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

vue-cli-plugin-chrome-extension-cli

English | ็ฎ€ไฝ“ไธญๆ–‡ | ็น้ซ”ไธญๆ–‡

Start a chrome extension project with Vue-CLI with ease!

Vue logo

Version License

support vue2 vue3 TypeScript and JavaScript!

Requirements

vue-cli 5.0.1 or higher

Installation

This plugin is meant for using new project for chrome extensions. Tested on default project of Vue, Vue with TypeScript

Usage?

vue create <project-name>
# Answer some questions
cd <project-name>
vue add chrome-extension-cli
# Answer some questions
# ๐ŸŽ‰

File folder

.
โ”œโ”€โ”€ 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 and Production

  • Run development mode with npm run build-watch and a dist file 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 build and zip it and deploy onto chrome store.

prompts.js

Vue CLI prompt is based on inquirer.js api.

Credit

License

MIT

Releases

Packages

Used by

Contributors

Languages