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

前端 未结 2 1898
走了就别回头了
走了就别回头了 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条回答
  • 2021-01-17 12:10

    You need to add:

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

    For your production config

    0 讨论(0)
  • 2021-01-17 12:17

    Setting "mode" helped to fix the issue like below with webpack 4, either you can use value for mode :development/production for an appropriate configuration file.

    module.exports = {
      mode: 'development'
    };
    
    0 讨论(0)
提交回复
热议问题