Skip to content

Can't use Closure Compiler if node.js detected #29

Open
@kryger

Description

Since 2.0.0 node.js is automatically detected in the env and used if available. This makes it impossible to use Closure Compiler when node.js is available:

Error: optimizer with name of "closure" not found for this environment

I believe there are three solutions:

  1. Add a configuration flag to disable autodetecting node.js
  2. If optimize: 'closure' detected, always use Rhino to prevent the error
  3. Use node.js for tracing dependencies but Rhino for minification if Closure Compiler used (I doubt it's technically possible since that's handled by r.js, but perhaps someone will come up with ideas?)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions