node-gyp配置为释放模式

时间:2013-02-27 17:42:08

标签: node.js node-gyp

您好我正在尝试将node_modules编译为发布模式,但我无法成功配置为发布模式。

我跑了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但未成功

1 个答案:

答案 0 :(得分:2)

默认值应为Release

尝试node-gyp configure --release