Skip to content

Unclear how to use the compressor_options for Google Closure #235

Open

Description

@chris-rock

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

Activity

  1. knowtheory commented on Jun 9, 2012

    @knowtheory
    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 :)

  2. daaain commented on Mar 30, 2013

    @daaain

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions