Minified code outside of NODE_ENV === 'production'. This means slower development build of Redux

前端 未结 2 1910
走了就别回头了
走了就别回头了 2021-01-17 11:59

So this is the full error: You are currently using minified code outside of NODE_ENV === \'production\'. This means that you are running a slower development build

2条回答
  •  梦毁少年i
    2021-01-17 12:10

    You need to add:

      new webpack.DefinePlugin({
        'process.env': {
          'NODE_ENV': JSON.stringify('production')
        }
      })
    

    For your production config

提交回复
热议问题