Best way for chrome extensions API frontend to work with Closure Advanced Optimization compiler?

Is there an easy way to use advanced optimization in my advanced Chrome code?

It uses the chrome API, and Advanced Optimization does not reverse engineer keywords. Is there a file or something that externs all chrome API?

+7
google-chrome-extension google-closure-compiler
source share
1 answer

Whenever you need an externs file, check out the contrib / externs directory of the compiler closure repository. External extensions for Chrome can be found in contrib / externs / chrome_extensions.js and can be used as follows:

// ==ClosureCompiler== // @compilation_level ADVANCED_OPTIMIZATIONS // @externs_url https://raw.githubusercontent.com/google/closure-compiler/master/contrib/externs/chrome_extensions.js // ==/ClosureCompiler== // Your code here. 
+15
source share

All Articles