生产模式下的babel-plugin-transform-remove-console React Native

时间:2018-05-07 06:34:46

标签: react-native babel

我已经安装了

npm i babel-plugin-transform-remove-console --save

还在.babelrc

中添加了以下代码
{
  "env": {
    "production": {
      "plugins": ["transform-remove-console"]
    }
  }
}

但在生产模式下,它不会删除console.log

同样在某些示例项目{i}安装后,{I}}文件没有生成。我错过了什么?

参考link

0 个答案:

没有答案