Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple targets not works fine #54

Closed
damarnez opened this issue Dec 7, 2013 · 1 comment
Closed

multiple targets not works fine #54

damarnez opened this issue Dec 7, 2013 · 1 comment

Comments

@damarnez
Copy link

damarnez commented Dec 7, 2013

I have this in my gruntfile

concat: {
      libs:{
        options: {
          separator: ''
        },
        dist: {
          src: ['public/dev/js/**/*.js'],
          dest: 'public/tmp/libs.temp.js'
        }
      },
      ext_libs:{
        options: {
          separator: '',
        },
        dist: {
          src: [
              'public/assets/jquery/js/jquery-1.10.2.js',
              'public/assets/jquery_ui/js/jquery-ui-1.10.3.custom.min.js', 
              'public/assets/backbone/backbone-min.js',
              'public/assets/bootstrap/js/bootstrap.js',
              'public/assets/moment/moment.min.js',
          ],
          dest: 'public/js/ext_libs.js',
        },
      }
    },

not show errors, but dosen't generate the files libs.min.js and ext_libs.js

Logs:

Running "less:development" (less) task
File public/css/style.css created.

Running "cssjoin:join" (cssjoin) task
File public/css/ext_styles.css created.

Running "concat:libs" (concat) task

Running "concat:ext_libs" (concat) task

grunt-cli v0.1.11
grunt v0.4.2
grunt-contrib-concat 0.1.3

thanks!

@shama
Copy link
Member

shama commented Dec 7, 2013

It looks like you accidentally nested a target within another. The dist target shouldn't be within the ext_libs target. Just pull the src/dest out of the unneeded dist target.

@shama shama closed this as completed Dec 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants