server
cnpm install webpack-dev-server --save-dev
package.json
"scripts": {
"build": "webpack",
"dev": "webpack-dev-server --inline --host localhost --port 8080 --open --hot"
},
运行
cnpm run dev
server
cnpm install webpack-dev-server --save-dev
package.json
"scripts": {
"build": "webpack",
"dev": "webpack-dev-server --inline --host localhost --port 8080 --open --hot"
},
运行
cnpm run dev