终端运行node并设置node_env为production

Mac:

export NODE_ENV=production && node app

Win:

set NODE_ENV=production && node app

参考资料:

posted @ 2017-02-23 10:30  zengnificant  阅读(2453)  评论(0编辑  收藏  举报