关于Vue脚手架的安装以及没有dve-server的配置问题

 一   安装脚手架命令
1. npm install --global vue-cli
 
2.vue init webpack my-project
3. cd my-project
4. npm install
5. npm run dev
 
二  基于现在的配置配置出原来的dev-server

"dev": "node build/dev-server.js",
"start": "npm run dev",
"build": "node build/build.js",
"webpack": "webpack",
"start": "concurrently "npm run tsc:w" "npm run lite" ",
"tsc": "tsc",
"tsc:w": "tsc -w",
"lite": "lite-server",
"typings": "typings",
"postinstall": "typings install"

和安装 npm install --save-dev webpack-hot-middleware。

三  脚手架的配置

原文地址:https://www.cnblogs.com/maqueya/p/7899173.html