我正在使用react-rails
gem来在Rails中使用React。自从我将react-rails
gem版本升级为2.0.2
后,它开始向我发出警告
application-0a65875….js:1842 Warning: It looks like you're using a minified copy of the development build of React. When deploying React apps to production, make sure to use the production build which skips development warnings and is faster...
在config/environments/production.rb
内,我有
config.react.variant = :production
知道如何解决这个问题吗?