mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-21 20:50:07 +00:00
use simple optimization to retain api in js
This commit is contained in:
parent
be3311ab2d
commit
7163d4dded
@ -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
|
||||
)
|
||||
|
@ -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" \
|
||||
|
Loading…
Reference in New Issue
Block a user