3

您好我正在尝试将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没有成功

4

1 回答 1

3

Default should be Release.

Try node-gyp configure --release

于 2013-08-06T19:58:09.617 回答