diff --git a/tasks/connect.js b/tasks/connect.js index 033125d..7d3ca5e 100644 --- a/tasks/connect.js +++ b/tasks/connect.js @@ -50,10 +50,12 @@ module.exports = function(grunt) { var middleware = function(connect, options, ware) { ware.unshift(caseSensitive); - ware.unshift(redirectMissingData); + if (!grunt.option("offline")) { + ware.unshift(redirectMissingData); + } return ware; }; - + grunt.config.merge({ connect: { dev: {