Skip to content

Commit

Permalink
add dirs to server
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Nov 1, 2023
1 parent 0735ca1 commit e2b3a7c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,17 @@ module.exports = function(grunt) {
};
const hosts = [];

console.log('startServer');
const root = path.join(__dirname, 'out');

const server = new Servez(Object.assign({
root: path.join(__dirname, 'out'),
root,
dataDir,
logger,
}, {
port: 8080,
scan: true,
index: true,
dirs: true,
extensions: ['html'],
}));
server.on('host', function(...args) {
Expand All @@ -226,7 +228,7 @@ module.exports = function(grunt) {
});

grunt.registerTask('build', ['clean', 'copy:main', 'buildlessons']);
grunt.registerTask('buildwatch', ['build', 'serve', 'watch']);
grunt.registerTask('buildwatch', [/*'build',*/ 'serve', 'watch']);

grunt.registerTask('default', ['eslint', 'build']);
};
Expand Down

0 comments on commit e2b3a7c

Please sign in to comment.