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:
- Add a configuration flag to disable autodetecting
node.js
- If
optimize: 'closure' detected, always use Rhino to prevent the error
- 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?)
Since 2.0.0
node.jsis automatically detected in the env and used if available. This makes it impossible to useClosure Compilerwhennode.jsis available:I believe there are three solutions:
node.jsoptimize: 'closure'detected, always useRhinoto prevent the errornode.jsfor tracing dependencies butRhinofor minification if Closure Compiler used (I doubt it's technically possible since that's handled byr.js, but perhaps someone will come up with ideas?)