Vue
Initialization
# No installation required
npm create vue@latest # Based on webpack
More at Creating a Vue Application.
Installation
npm i -g @vue/cli # Based on vite, which is based on rollup
More at Installation (cli.vuejs.org).
Usage
vue-cli-service <command> [options]
# Use with npx
npx vue-cli-service <command> [option]
# Use with npm scripts
npm run serve -- [option]
npm run build -- [option]
// package.json e.g.:
{
"scripts": {
"serve": "vue-cli-service serve --port <port-number> --open",
"build": "vue-cli-service build"
}
}
Commands:
serve
, options:--open
--mode
(development
by default)--host
(0.0.0.0
by default)--port
(8080
by default)
build
, options:--mode
(production
by default)--dest
(dist
by default)--watch
More at (cli.vuejs.org):