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
This commit is contained in:
parent
b9d8281818
commit
5c0bb29461
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue