From 7163d4dded47d2fa0baf538805b95f05f592b3d1 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Sun, 3 May 2015 11:55:54 +0800 Subject: [PATCH] use simple optimization to retain api in js --- CMakeLists.txt | 2 ++ share/build_js.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 39099b1..ed9a5dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -183,6 +183,7 @@ add_custom_target(pdf2htmlEX_resources ALL DEPENDS add_custom_command(OUTPUT ${CMAKE_SOURCE_DIR}/share/pdf2htmlEX.min.js COMMAND ${CMAKE_SOURCE_DIR}/share/build_js.sh DEPENDS + ${CMAKE_SOURCE_DIR}/share/build_js.sh ${CMAKE_SOURCE_DIR}/share/pdf2htmlEX.js ) @@ -191,6 +192,7 @@ add_custom_command(OUTPUT ${CMAKE_SOURCE_DIR}/share/fancy.min.css COMMAND ${CMAKE_SOURCE_DIR}/share/build_css.sh DEPENDS + ${CMAKE_SOURCE_DIR}/share/build_css.sh ${CMAKE_SOURCE_DIR}/share/base.css ${CMAKE_SOURCE_DIR}/share/fancy.css ) diff --git a/share/build_js.sh b/share/build_js.sh index c03eba3..a6e7d61 100755 --- a/share/build_js.sh +++ b/share/build_js.sh @@ -15,7 +15,7 @@ OUTPUT="$BASEDIR/$OUTPUT_FN" (echo "Building $OUTPUT_FN with closure-compiler..." && \ java -jar "$CLOSURE_COMPILER_JAR" \ - --compilation_level ADVANCED_OPTIMIZATIONS \ + --compilation_level SIMPLE_OPTIMIZATIONS \ --warning_level VERBOSE \ --output_wrapper "(function(){%output%})();" \ --js "$INPUT" \