Skip to content

Commit

Permalink
docs: fix watch mode for JS
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Jan 8, 2025
1 parent bbff7f9 commit e8940a8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/build-site.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,15 @@ if (!process.env.BUILD) {
const http_server = require('http-server');
const watchGlob = require('glob-watcher');

watchGlob('**', buildJekyll);
watchGlob('!(_site)/**', buildJekyll);
watchGlob('*.html', buildJekyll);
watchGlob('*.md', buildJekyll);
watchGlob('*.xml', buildJekyll);
watchGlob('_config.yml', buildJekyll);
watchGlob('manifest.appcache', buildJekyll);

watchGlob('docs/static/less/*/*.less', buildCSS);

http_server.createServer({root: '_site', cache: '-1'}).listen(4000);
console.log('Server address: http://localhost:4000');
}
Expand Down

0 comments on commit e8940a8

Please sign in to comment.