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" \