package.json 中 scripts

"name": "webpack-study1",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "webpack-dev-server --open --port 3000 --hot",
"bulid": "webpack --mode production",
"start": "--mode development",
"build": "--mode production"
},

 

 

 

npm run test
npm run dev

.....

posted on 2018-10-05 17:07  微先锋  阅读(2206)  评论(0编辑  收藏  举报

导航