From 5c0bb294611300a7442065a04f73a75dd2e8b9f5 Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Wed, 8 May 2019 10:24:57 +1000 Subject: [PATCH] DEV: re-enable compression for node asset compilation #b9d82818 makes enormous improvements to our bootstrap time, however going to still keep compress for now despite the cost and watch it for a few weeks --- lib/tasks/assets.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index 62f6fb09f0a..47ee8f545ac 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -79,7 +79,7 @@ def compress_node(from, to) source_map_root = assets + ((d = File.dirname(from)) == "." ? "" : "/#{d}") source_map_url = cdn_path "/assets/#{to}.map" - cmd = "uglifyjs '#{assets_path}/#{from}' -p relative -m -o '#{to_path}' --source-map-root '#{source_map_root}' --source-map '#{assets_path}/#{to}.map' --source-map-url '#{source_map_url}'" + cmd = "uglifyjs '#{assets_path}/#{from}' -p relative -m -c -o '#{to_path}' --source-map-root '#{source_map_root}' --source-map '#{assets_path}/#{to}.map' --source-map-url '#{source_map_url}'" STDERR.puts cmd result = `#{cmd} 2>&1`