Skip to content

Commit

Permalink
pass directory options to serve-index
Browse files Browse the repository at this point in the history
allows the following options:
```
 connect: {
      server: {
        options: {
          directory: {
            path: './',
            options: {
              icons: true,
            }
          }
        }
      }
```
  • Loading branch information
Spongman authored and XhmikosR committed Sep 9, 2018
1 parent 19924f8 commit 122398b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/connect.js
Expand Up @@ -40,7 +40,7 @@ module.exports = function(grunt) {
middlewares.push(serveStatic(path, staticOptions));
});
// Make directory browse-able.
middlewares.push(serveIndex(directory.path || directory));
middlewares.push(serveIndex(directory.path || directory, directory.options));
return middlewares;
};

Expand Down

0 comments on commit 122398b

Please sign in to comment.