@gluons/vue-dev-server
v0.0.2
Published
A simple dev server for Vue.js.
Downloads
2
Readme
Vue Dev Server
A simple dev server for Vue.js.
Installation
Via npm:
npm install -D @gluons/vue-dev-server
Via pnpm:
pnpm install -D @gluons/vue-dev-server
Via Yarn:
yarn add -D @gluons/vue-dev-server
Usage
CLI:
vue-dev-server main.ts
Use vue-dev-server -h
for help.
Config
Config file will be loaded by Cosmiconfig.
Config file can be the file below:
vue-dev-server.config.js
vue-dev-server.config.json
vue-dev-server.config.yaml
vue-dev-server.config.yml
vue-dev-server.config.ts
entry
Type: string
Required: ✔
Path to entry file.
alias
Type: Record<string, string>
Path aliases.
define
Type: Record<string, unknown>
Default: { 'process.env.NODE_ENV': 'development' }
Define global constants which can be configured at compile time.
port
Type: number
Default: 8080
Port of development server.
open
Type: boolean
Default: true
Open webpage in browser when server start.
clipboard
Type: boolean
Default: false
Copy dev server URL to clipboard.
htmlTitle
Type: string
Default: 'Vue Dev Server'
Title of development webpage.