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

Default task inconsistencies with other grunt contribs #287

Open
brendanseabrook opened this issue Sep 14, 2015 · 0 comments
Open

Default task inconsistencies with other grunt contribs #287

brendanseabrook opened this issue Sep 14, 2015 · 0 comments

Comments

@brendanseabrook
Copy link

Hello,

Relatively new to this stack. One thing that just tripped me up was that when using other contribs (jshint, concat, uglify, copy), they all have an implicit 'default' task. Less is the only one I have encountered which requires a task level.

//Runs as default task
less: {
  default: {
    files: {
      "dist/css/foo.css": "style/foo.less"
     }
  }
}
//Runs as default or develop task
less: {
  develop: {
    files: {
      "dist/css/foo.css": "style/foo.less"
     }
  }
}
//Does not run anything. No warnings. No errors
less: {
  files: {
    "dist/css/foo.css": "style/foo.less"
  }
}

If someone could explain why this is that would be great. Thanks.

@brendanseabrook brendanseabrook changed the title Default task inconstancies with other grunt contribs Default task inconsistencies with other grunt contribs Sep 14, 2015
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

1 participant