From 8997df5c6dd87ca5c2bf5b602cf5e9403efe2d60 Mon Sep 17 00:00:00 2001 From: alykat Date: Mon, 13 Sep 2021 22:21:24 -0400 Subject: [PATCH] check for "offline" flag #5 --- tasks/connect.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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: {