How to Craft a Vue CLI Plugin
summary
Shows how a real Vue CLI plugin is structured and what it actually does: the demo plugin uses EJS templates to scaffold files, calls the generator to install deps and update package.json, uses webpack-chain to mutate webpack config at runtime, and exposes a command via registerCommand plus a UI integration. The build runs live in the demo, prompts are wired to generated output, and the ecosystem already lists 300–400 plugins available.
AI-written summary · about
chapters (9)
- 0:00Start
- 1:58Getting Started
- 2:16Built-in features
- 2:36Template
- 2:49Pick the features you want
- 4:23Vue CLI components that will load our plugin
- 5:34Naming!
- 6:55Plugin structure
- 8:35Create new files








