small medium large xlarge

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?

23 Apr 2015, 00:32
Brian P. Hogan (159 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