From 41ff059837565f2211859663794b20e35ad6836f Mon Sep 17 00:00:00 2001 From: Paladox none Date: Mon, 23 Jul 2018 13:31:43 +0000 Subject: [PATCH] Mention how to download closure-compiler to build highlight.js Change-Id: If3d6fd2ff4c3af927b1c7b677dee07b5b7293fae --- lib/highlightjs/building.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/highlightjs/building.md b/lib/highlightjs/building.md index 00f899be1c..3496c69019 100644 --- a/lib/highlightjs/building.md +++ b/lib/highlightjs/building.md @@ -61,10 +61,15 @@ repo under the name "highlight.pack.js". ## Minification -Minify the file using closure-compiler using the command below. (Modify -`/path/to` with the path to your compiler jar.) +Minify the file using closure-compiler using the command below. - $> java -jar /path/to/closure-compiler.jar \ + $> wget https://dl.google.com/closure-compiler/compiler-latest.zip + + $> unzip compiler-latest.zip + + $> mv closure-compiler-*.jar closure-compiler.jar + + $> java -jar ./closure-compiler.jar \ --js build/highlight.pack.js \ --js_output_file build/highlight.min.js