node-gyp configure来释放模式

您好我正在尝试编译一个node_modules作为发布模式,但我无法成功configuration为发布模式。

我运行node-gyp configure ; 生成的configure.gypi

  # Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], **"default_configuration": "Debug",** "defines": [], "include_dirs": [], "libraries": [] }, 

我试着用-DBUILDTYPE=ReleaseBUILDTYPE=Release但是没有成功

默认应该是Release

试试node-gyp configure --release