dart-dev-compiler

Compiling Dart into minifier friendly javascript: From dartdevc into google-closure-compiler

给你一囗甜甜゛ 提交于 2019-12-11 15:28:57
问题 What compiler options are best to ensure that dartdevc generates minifier friendly javascript code which can be compressed by google closure compiler in ADVANCED mode. Please show a tested example that specifies options for 1. dartdevc, and 2. java -jar goolge-closure-compiler.jar as a simple bash script, without pub. Module type should be 'common' if possible, dart_sdk.js should be included, the final result should be es3 or es5 for compatibility with all browsers, and all output goes into