Skip to content

Commit

Permalink
build-site: lazy-load dev libs
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Aug 15, 2023
1 parent 1804282 commit f47d323
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/build-site.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

'use strict';

var http_server = require('http-server');
var fs = require('fs');
var watchGlob = require('watch-glob');
var replace = require('replace');
var exec = require('child-process-promise').exec;
var mkdirp = require('mkdirp');
Expand Down Expand Up @@ -72,6 +70,9 @@ function buildEverything() {
}

if (!process.env.BUILD) {
const http_server = require('http-server');
const watchGlob = require('watch-glob');

watchGlob('**', buildJekyll);
watchGlob('docs/static/less/*/*.less', buildCSS);
http_server.createServer({root: '_site', cache: '-1'}).listen(4000);
Expand Down

0 comments on commit f47d323

Please sign in to comment.