Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear how to use the compressor_options for Google Closure #235

Open
chris-rock opened this issue Jun 9, 2012 · 2 comments
Open

Unclear how to use the compressor_options for Google Closure #235

chris-rock opened this issue Jun 9, 2012 · 2 comments

Comments

@chris-rock
Copy link

Following https://developers.google.com/closure/compiler/docs/api-tutorial3#howto-app and https://github.com/documentcloud/closure-compiler it should be easy to use something like:

javascript_compressor: closure
#compressor_options:
#  compilation_level: "ADVANCED_OPTIMIZATIONS"
#  externs: src/js/externs.js

Looks like the externs parameter is not recognized

@knowtheory
Copy link
Member

Hey @chris-rock have you checked out the usage instructions on how to use the advanced optimizations in your own compilation scripts? https://github.com/documentcloud/closure-compiler#usage

Ah looks like you have. Pull requests always welcome :)

@daaain
Copy link

daaain commented Mar 30, 2013

I'm not sure how could this work without custom parsing in Jammit. You can pass multiple externs parameters to Closure compiler on the CLI, but will that work in YAML?

For example:

javascript_compressor: closure
compressor_options:
  compilation_level: "ADVANCED_OPTIMIZATIONS"
  externs: src/js/jquery.js
  externs: src/js/my_externs.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants