@vue/cli
+webpack
初始項目vue
(1)安裝Vue-cli
webpack
npm install -g @vue/cli
(2)建立webpack
管理的項目web
vue init webpack vue_demo
npm run dev
或者npm
npm start
會出現:app
Your application is running here: http://localhost:8080
npm run build
serve dist
┌───────────────────────────────────────────────────┐
│ │
│ Serving! │
│ │
│ - Local: http://localhost:5000 │
│ - On Your Network: http://169.254.0.104:5000 │
│ │
│ Copied local address to clipboard! │
│ │
└───────────────────────────────────────────────────┘ui