Rails - 使用React开发版本的缩小副本

时间:2017-04-19 06:22:33

标签: ruby-on-rails reactjs ruby-on-rails-5 react-rails

我正在使用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

知道如何解决这个问题吗?

0 个答案:

没有答案