From b3c7e12d9a8ef5dc29147cc0c27247c53578ecd8 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Sun, 2 Oct 2016 10:53:35 +0800 Subject: [PATCH] assets.debug was why assets were loud --- config/environments/development.rb | 5 +++-- config/initializers/assets.rb | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index b1654921..dd6095b2 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true -Metamaps::Application.configure do +Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb config.log_level = :info @@ -46,5 +46,6 @@ Metamaps::Application.configure do config.action_mailer.preview_path = '/vagrant/spec/mailers/previews' # Expands the lines which load the assets - config.assets.debug = true + config.assets.debug = false + config.assets.quiet = true end diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index 4edab3b6..11f6601e 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -1,13 +1,13 @@ # frozen_string_literal: true -# Be sure to restart your server when you modify this file. +Rails.application.configure do + # Version of your assets, change this if you want to expire all your assets. + config.assets.version = '2.0' + config.assets.quiet = true -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '2.0' -Rails.application.config.assets.quiet = true + # Add additional assets to the asset load path + # Rails.application.config.assets.paths << Emoji.images_path -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -Rails.application.config.assets.precompile += %w(webpacked/metamaps.bundle.js) + # Precompile additional assets. + # application.js, application.css, and all non-JS/CSS in app/assets folder are already added. + config.assets.precompile += %w(webpacked/metamaps.bundle.js) +end