如何通过 rails-assets 安装 modernizr 3?

How do I install modernizr 3 via rails-assets?

modernizr 2 很容易从 rails-assets.

安装
# Gemfile
gem 'rails-assets-modernizr'
# application.js
//= require modernizr

但是,modernizr 3 文档说:

A lot has changed since the last version of Modernizr. There no longer is a single, base modernizr.js file. Instead, just head over to the Download page as you could have previously, and select the features you want to use in your project. https://modernizr.com/docs/

这听起来好像我再也无法从 rails-assets 中获取 modernizr 3 了。这是真的吗?

正如预期的那样,如果我尝试从 rails-assets 安装 modernizr 3,我会得到:

An ActionView::Template::Error occurred ...

  couldn't find file 'modernizr' ...
  app/assets/javascripts/application.js:20

我没有让 v3 工作。我通过像这样更改我的 gemfile 将版本降为 2.8.3:

source 'https://rails-assets.org' do
  gem 'rails-assets-respond'
  gem 'rails-assets-modernizr', '2.8.3'
end