thanpolas / grunt-closure-tools

Google Closure Tools for grunt
MIT License
95 stars 22 forks source link

Output file appends undefined #9

Closed alex88 closed 11 years ago

alex88 commented 11 years ago

Hello, this is my config:

closureCompiler: {
  dist: {
    closureCompiler: 'vendor/closure/compiler.jar',
    js: '<config:concat.dist.dest>',
    output_file: 'dist/test.min.js',
    checkModified: false,
    options: {
      compilation_level: 'ADVANCED_OPTIMIZATIONS',
    }
  }
},

but when it tries to compile I get

Running "closureCompiler:dist" (closureCompiler) task
Executing: java -jar vendor/closure/compiler.jar  --js dist/test-js.js --js_output_file=dist/test.min.jsundefined

as you can see it adds an 'undefined' string at the end of the file.. Any idea why?

thanpolas commented 11 years ago

Thank you @alex88, problem fixed now.

Make sure you upgrade to 0.6.7

alex88 commented 11 years ago

Thanks for the fix! :+1: