small medium large xlarge

Generic-user-small
25 Nov 2014, 04:47
Mark Rajcok (4 posts)

On p.43 of the p2 PDF version, we find

grunt.registerTask('build', "Builds the application.",
  ['coffee', 'concat:scripts', 'sass', 'cssmin', 'uglify' ]);

Is “concat:scripts” necessary? Wouldn’t “concat” be sufficient? Or is there a good reason to specifying the scripts target here?

Bphogan2016_pragsmall
23 Apr 2015, 00:32
Brian P. Hogan (172 posts)

I think it would be sufficient, but I like the more verbose version here, targeting the very specific subtasks. I’m not interested in doing other concatenation in this particular task.

That said, this is something I might just address in the revision I’m working on. So thanks for asking this question.

You must be logged in to comment