grunt-bower-concat icon indicating copy to clipboard operation
grunt-bower-concat copied to clipboard

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

Open Tropicalista opened this issue 8 years ago • 3 comments

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?

Tropicalista avatar Jul 05 '16 14:07 Tropicalista

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

bower_concat : {
    job_name : {
        dest : {
            js : 'path/to/bundle.js'
        }
    }
}

jbhamilton avatar Sep 07 '16 19:09 jbhamilton

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 avatar Dec 15 '16 11:12 golkir

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?

golkir avatar Dec 15 '16 13:12 golkir