DEV: Delete `uglify` asset codepath (#22346)

We no longer process any thrid-party assets with uglify
This commit is contained in:
Jarek Radosz 2023-06-29 12:23:46 +02:00 committed by GitHub
parent 3290c954f9
commit 6b4762e450
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -278,11 +278,7 @@ task "javascript:update" => "clean_up" do
STDERR.puts "New dependency added: #{dest}" unless File.exist?(dest)
if f[:uglify]
File.write(dest, Uglifier.new.compile(File.read(src)))
else
FileUtils.cp_r(src, dest)
end
FileUtils.cp_r(src, dest)
end
write_template("discourse/app/lib/public-js-versions.js", "update", <<~JS)