我跟着jhipster安装并且能够运行最新的jhipster。我想使用安装了chrome调试器和低于运行配置的visual studio代码来调试angular2代码
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Chrome against localhost, with sourcemaps",
"type": "chrome",
"request": "launch",
"url": "http://localhost:9000",
// This forces chrome to run a brand new instance, allowing existing
// chrome windows to stay open.
"userDataDir": "${workspaceRoot}/.vscode/chrome",
"sourceMaps": true,
"webRoot": "${workspaceRoot}",
//"diagnosticLogging": true,
"sourceMapPathOverrides": { "webpack:///C:*":"C:/*" }
}
]
}
我看到下面的错误和vs代码不会达到调试断点
SourceMaps.loadSourceMapContents:无法从http://localhost:9000/toSubscriber.js.map下载源图...等等
jhipster使用webpack,它不会生成源映射。如何创建这些源地图?