diff --git a/templates/common/Gruntfile.js b/templates/common/Gruntfile.js index 32ba32ec3..d1e7b8b9a 100644 --- a/templates/common/Gruntfile.js +++ b/templates/common/Gruntfile.js @@ -412,9 +412,9 @@ module.exports = function (grunt) { ]); }); - grunt.registerTask('server', function () { + grunt.registerTask('server', function (target) { grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.'); - grunt.task.run(['serve']); + grunt.task.run(['serve:' + target]); }); grunt.registerTask('test', [