返回列表

webpack-dev-server not working from debugger vscode Configuring VSC's launch.json to launch webpack-dev-server

默认分类 2019/05/10 10:14

URL: https://github.com/webpack/webpack-dev-server/issues/785

Configuring VSC's launch.json to launch webpack-dev-server

webpack-dev-server not working from debugger vscode.

I occur the same problem. After tried different ways, the follow config is working.

launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Launch Program",
      // "program": "cd ${workspaceFolder};npm run dev"
      "program": "${workspaceFolder}\

ode_modules\\webpack-dev-server\\bin\\webpack-dev-server.js", "args": [ "-d", "--inline", "--progress", "--config", "build\\webpack.dev.conf.js" ], "cwd": "${workspaceFolder}" } ] }


>> 留言评论