sapegin / grunt-bower-concat

Bower components concatenator for Grunt
MIT License
220 stars 72 forks source link

You should specify "dest" and/or "cssDest" properties in your Gruntfile #72

Open Tropicalista opened 8 years ago

Tropicalista commented 8 years ago

I'm trying to use bower_concat. I get this error:

You should specify "dest" and/or "cssDest" properties in your Gruntfile

This is my gruntfile.js:

    // Bower Concat
    bower_concat : {
        css : { 
            cssDest : 'includes/css/bower.css',
            mainFiles : {}
        },
        js  : { 
            dest    : 'includes/js/bower.js', 
            exclude : [ "jquery" ],
            mainFiles :{
            }
        }
    }

In my bower there are those dependencies:

  "dependencies": {
    "jquery-filedrop": "~0.1.0",
    "Jcrop": "^2.0.4",
    "jQuery-contextMenu": "^2.2.0"
  }

What's wrong with this?

jbhamilton commented 8 years ago

Your bower_concat task in your Gruntfile.js should follow this form:

bower_concat : {
    job_name : {
        dest : {
            js : 'path/to/bundle.js'
        }
    }
}
golkir commented 7 years ago

Hi! Have the same error. the structure is ok. "Running "bower_concat:dest" (bower_concat) task Verifying property bower_concat.dest exists in config...OK File: [no files] Warning: You should specify "dest" and/or "cssDest" properties in your Gruntfile. Use --force to continue."

golkir commented 7 years ago

Sorry, it seems that job name is necessary. What if I want to have only one job within a task? Why should I name it?