thanpolas / grunt-closure-tools

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

Unable to compiler files to the same ones #43

Closed skotchio closed 10 years ago

skotchio commented 10 years ago

I have the following file structure:

js
 | - concat1.js
 | - concat2.js

I have the combined files for example concat1.js and concat2.js and I need to compile them by closureCompiler and put to the same files. I've tried 'files' grunt options:

 // any name that describes your task
 targetName: {
    files: [
     {
       expand: true,
       cwd: /'js',
       src: ['**/*.js'],
       dest: /'js'
      }
     ]
 }

but I get Error: Command failed error. How can I do this thing correctly?

thanpolas commented 10 years ago

The files object is unfortunately not supported by GCT, please use src and dest as per the documentation