Skip to content

Commit a5b631a

Browse files
committed
Update grunt connect config
1 parent ef31594 commit a5b631a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Gruntfile.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@ module.exports = function(grunt) {
2424
server: {
2525
options: {
2626
hostname: '*',
27-
directory: '.',
28-
keepalive: true
27+
keepalive: true,
28+
middleware: function(connect, options) {
29+
return [
30+
connect.static(options.base),
31+
connect.directory(options.base)
32+
];
33+
}
2934
}
3035
}
3136
}

0 commit comments

Comments
 (0)