vscode webpack start debugging and packaging the deployment process, nodejs debugging

launch.json
```
{
  // use IntelliSense understanding of the relevant property. 
  // hover to see the existing property description.
  // For more information, please visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name":"launch webpack-dev-server",
      "program": "${workspaceFolder}/node_modules/webpack-dev-server/bin/webpack-dev-server.js",
      "args": ["--progress", "--inline", "--config", "build/webpack.dev.conf.js"]
    },
    {
      "type": "node",
      "request": "launch",
      "name":"launch webpack",
      "program": "${workspaceFolder}/node_modules/webpack/bin/webpack.js",
      "args": ["--progress", "--config", "build/webpack.prod.conf.js"]
    }
  ]
}
```

Guess you like

Origin www.cnblogs.com/both-eyes/p/11615140.html