Skip to content

Commit 8997df5

Browse files
committed
check for "offline" flag #5
1 parent b8313f7 commit 8997df5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tasks/connect.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ module.exports = function(grunt) {
5050

5151
var middleware = function(connect, options, ware) {
5252
ware.unshift(caseSensitive);
53-
ware.unshift(redirectMissingData);
53+
if (!grunt.option("offline")) {
54+
ware.unshift(redirectMissingData);
55+
}
5456
return ware;
5557
};
56-
58+
5759
grunt.config.merge({
5860
connect: {
5961
dev: {

0 commit comments

Comments
 (0)