我在package.json文件中使用此配置來運行webpack dev服務器。我想用一個構建命令爲好,但它不是爲我工作節點構建命令不起作用
{
"name": "Demo",
"version": "1.0.0",
"description": "Demo App",
"main": "index.js",
"scripts": {
"start": "webpack-dev-server --hot",
"build": "webpack --watch"
},
npm start
命令工作正常,但身材不是
見https://docs.npmjs.com/cli/start VS https://docs.npmjs.com/cli/run -script – DevDig