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

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

Comments

Projects
None yet
3 participants

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

Owner

knowtheory commented Jun 9, 2012

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 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