disable minifying assets when deploying a site (ENV variable: WAGON_NO_MINIFY_ASSETS)
did
committed Mar 17, 2016
commit a2554f5684b268f5c3bd6f6d619e4fd4c67f78c3
Showing 2
changed files with
3 additions
and 2 deletions
locomotive/wagon/commands/concerns/steam_concern.rb b/lib/locomotive/wagon/commands/concerns/steam_concern.rb
+1
-1
| @@ | @@ -11,7 +11,7 @@ module Locomotive::Wagon |
| config.mode = :test | |
| config.adapter = { name: :filesystem, path: path } | |
| config.asset_path = File.expand_path(File.join(path, 'public')) | |
| - | config.minify_assets = true |
| + | config.minify_assets = false |
| end | |
| @steam_services = Locomotive::Steam::Services.build_instance.tap do |services| | |
locomotive/wagon/commands/push_sub_commands/push_theme_assets_command.rb b/lib/locomotive/wagon/commands/push_sub_commands/push_theme_assets_command.rb
+2
-1
| @@ | @@ -86,7 +86,8 @@ module Locomotive::Wagon |
| end | |
| def sprockets_env | |
| - | @sprockets_env ||= Locomotive::Steam::SprocketsEnvironment.new(File.join(path, 'public'), minify: true) |
| + | @sprockets_env ||= Locomotive::Steam::SprocketsEnvironment.new(File.join(path, 'public'), |
| + | minify: ENV['WAGON_NO_MINIFY_ASSETS'].present? ? false : true) |
| end | |
| def skip?(entity) | |