vscode调试webpack的启动和打包部署过程,nodejs调试

launch.json

{
  // 使用 IntelliSense 了解相关属性。 
  // 悬停以查看现有属性的描述。
  // 欲了解更多信息,请访问: 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"]
    }
  ]
}

你可能感兴趣的:(webpack)