DEV: re-enable compression for node asset compilation

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

diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake
index 62f6fb0..47ee8f5 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`

GitHub sha: 5c0bb294

2 Likes