vue-build
Build Vue.js applications for production
TLDR
Build for production
$ vue build
Build with custom target$ vue build --target [lib]
Build specific entry$ vue build [entry.js]
SYNOPSIS
vue build [options] [entry]
DESCRIPTION
vue build compiles Vue.js applications for production. Creates optimized bundles with minification and tree-shaking. Part of Vue CLI's instant prototyping feature (requires `@vue/cli-service-global`). For standard project builds, use `vue-cli-service build`.
PARAMETERS
--target target
Build target (app, lib, wc).--name name
Library or component name.--dest dir
Output directory.--modern
Build for modern browsers with auto legacy fallback (Vue CLI 4 only, removed in CLI 5).--no-clean
Do not remove the output directory before building.--watch
Watch for changes and rebuild automatically.
