mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
missing a bracket
This commit is contained in:
parent
8560194abf
commit
0032047804
@ -103,7 +103,7 @@ end
|
|||||||
def compress_node(from,to)
|
def compress_node(from,to)
|
||||||
to_path = "#{assets_path}/#{to}"
|
to_path = "#{assets_path}/#{to}"
|
||||||
assets = cdn_relative_path("/assets")
|
assets = cdn_relative_path("/assets")
|
||||||
source_map_root = assets + (d=File.dirname(from)) == "." ? "" : "/#{d}"
|
source_map_root = assets + ((d=File.dirname(from)) == "." ? "" : "/#{d}")
|
||||||
source_map_url = cdn_path "/assets/#{to}.map"
|
source_map_url = cdn_path "/assets/#{to}.map"
|
||||||
|
|
||||||
cmd = "uglifyjs '#{assets_path}/#{from}' -p relative -c -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 -c -m -o '#{to_path}' --source-map-root '#{source_map_root}' --source-map '#{assets_path}/#{to}.map' --source-map-url '#{source_map_url}'"
|
||||||
|
Loading…
Reference in New Issue
Block a user