1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

use simple optimization to retain api in js

This commit is contained in:
Lu Wang 2015-05-03 11:55:54 +08:00
parent be3311ab2d
commit 7163d4dded
2 changed files with 3 additions and 1 deletions

View File

@ -183,6 +183,7 @@ add_custom_target(pdf2htmlEX_resources ALL DEPENDS
add_custom_command(OUTPUT ${CMAKE_SOURCE_DIR}/share/pdf2htmlEX.min.js add_custom_command(OUTPUT ${CMAKE_SOURCE_DIR}/share/pdf2htmlEX.min.js
COMMAND ${CMAKE_SOURCE_DIR}/share/build_js.sh COMMAND ${CMAKE_SOURCE_DIR}/share/build_js.sh
DEPENDS DEPENDS
${CMAKE_SOURCE_DIR}/share/build_js.sh
${CMAKE_SOURCE_DIR}/share/pdf2htmlEX.js ${CMAKE_SOURCE_DIR}/share/pdf2htmlEX.js
) )
@ -191,6 +192,7 @@ add_custom_command(OUTPUT
${CMAKE_SOURCE_DIR}/share/fancy.min.css ${CMAKE_SOURCE_DIR}/share/fancy.min.css
COMMAND ${CMAKE_SOURCE_DIR}/share/build_css.sh COMMAND ${CMAKE_SOURCE_DIR}/share/build_css.sh
DEPENDS DEPENDS
${CMAKE_SOURCE_DIR}/share/build_css.sh
${CMAKE_SOURCE_DIR}/share/base.css ${CMAKE_SOURCE_DIR}/share/base.css
${CMAKE_SOURCE_DIR}/share/fancy.css ${CMAKE_SOURCE_DIR}/share/fancy.css
) )

View File

@ -15,7 +15,7 @@ OUTPUT="$BASEDIR/$OUTPUT_FN"
(echo "Building $OUTPUT_FN with closure-compiler..." && \ (echo "Building $OUTPUT_FN with closure-compiler..." && \
java -jar "$CLOSURE_COMPILER_JAR" \ java -jar "$CLOSURE_COMPILER_JAR" \
--compilation_level ADVANCED_OPTIMIZATIONS \ --compilation_level SIMPLE_OPTIMIZATIONS \
--warning_level VERBOSE \ --warning_level VERBOSE \
--output_wrapper "(function(){%output%})();" \ --output_wrapper "(function(){%output%})();" \
--js "$INPUT" \ --js "$INPUT" \