I am trying to get Visual Studio Code to run the webpack-dev-server command, but no matter what configuration I use in launch.json, I get an error.
My current launch.json looks like this:
{ "version": "0.2.0", "configurations": [ { "name": "Launch", "type": "node", "request": "launch", "program": "./node_modules/.bin/webpack-dev-server.cmd", "stopOnEntry": false, "args": ["-d --hot --inline"], "cwd": ".", "runtimeExecutable": null, "runtimeArgs": [], "env": { "NODE_ENV": "development" }, "externalConsole": false, "sourceMaps": true, "outDir": "null" }, { "name": "Attach", "type": "node", "request": "attach", "port": 5858 } ] }
Current error:
cannot launch program 'c:\ftct\node_modules\.bin\webpack-dev-server.cmd'; setting the 'outDir' attribute might help
I tried setting outDir to some value, but it complains about setting this attribute nonetheless.
Any ideas? This is what seems like the last hurdle when porting from Visual Studio 2015 to Visual Studio Code!
source share