Mention how to download closure-compiler to build highlight.js

Change-Id: If3d6fd2ff4c3af927b1c7b677dee07b5b7293fae
This commit is contained in:
Paladox none 2018-07-23 13:31:43 +00:00
parent 02cf0926c2
commit 41ff059837

View File

@ -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