Skip to content

Running Closure Compiler without Rebuilding #22039

Answered by kripken
takase1121 asked this question in Q&A
Discussion options

You must be logged in to vote

You can link without full minification using --minify=0, which should then allow closure advanced to run properly after Emscripten. Here is the test for that:

emscripten/test/test_other.py

Lines 14567 to 14574 in a6e1f5c

def test_no_minify_and_later_closure(self):
# test that running closure after --minify=0 works
self.run_process([EMCC, test_file('hello_libcxx.cpp'), '-O2', '--minify=0'])
temp = building.closure_compiler('a.out.js',
advanced=True,
extra_closure_args=['--formatting', 'PRETTY_PRINT'])
shutil.copyfile(temp, 'closured.js')
self.assertContained('hello, world!', self.run_js('closured.js'))

When full minification is on (which…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@takase1121
Comment options

@sbc100
Comment options

@takase1121
Comment options

@sbc100
Comment options

Answer selected by takase1121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants