require 'amp-html' <% if options[:javascript] %> Rails.application.configure do if AmpHtml.assets_only_amp config.assets.precompile += ['amp/**/*.js', 'amp/**/*.scss'] else config.assets.precompile += ['amp/**/*.js', 'amp/**/*.scss'] end end <% else %> Rails.application.configure do if AmpHtml.assets_only_amp config.assets.precompile += ['amp/**/*.scss'] else config.assets.precompile += ['amp/**/*.scss'] end end <% end %>