【发布时间】:2020-05-23 10:31:10
【问题描述】:
我正在尝试使用 webpack-dev-server 设置我的 webpack 实例。 我将增加标头大小的设置传递给脚本“--max-http-header-size=100000”。
"dev": "npm run options-to-dev && env targets=manager && node --max-http-header-size=100000 webpack-dev-server --host 0.0.0.0 --progress --config webpack.config.js"
在执行脚本“dev”上出现错误
$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
^^^^^^^
SyntaxError: missing ) after argument list
at Module._compile (internal/modules/cjs/loader.js:891:18)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10)
at internal/main/run_main_module.js:17:11
没有 "node --max-http-header-size=100000" webpack 工作完美。
【问题讨论】: