【发布时间】:2023-03-29 16:55:02
【问题描述】:
使用 Intellij IDEA 的调试工具进行 webpack,
操作系统:MAC
npm 脚本:
"scripts": {
"dev": " webpack-dev-server --inline --hot --display-error-details --content-base --config mvvm/build/webpack.dev.conf.js",
}
提示:
To debug "build-distributor" script, make sure $NODE_DEBUG_OPTION string is specified as the first argument for node command you'd like to debug.
For example:
{ "start": "node $NODE_DEBUG_OPTION server.js" }
问题:
在哪里添加这段代码($NODE_DEBUG_OPTION)?
【问题讨论】:
标签: node.js intellij-idea webpack javascript-debugger