forked from Viglino/font-gis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserve.js
14 lines (13 loc) · 795 Bytes
/
serve.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var liveServer = require("live-server");
var params = {
port: 8181, // Set the server port. Defaults to 8080.
host: "0.0.0.0", // Set the address to bind to. Defaults to 0.0.0.0 or process.env.IP.
open: false, // When false, it won't load your browser by default.
watch: ['index.*', 'font-gis.json', 'css/font-gis.css'], // comma-separated string for paths to watch
// ignore: '', // comma-separated string for paths to ignore
file: "index.html", // When set, serve this file (server root relative) for every 404 (useful for single-page applications)
wait: 1000, // Waits for all changes, before reloading. Defaults to 0 sec.
logLevel: 2 // 0 = errors only, 1 = some, 2 = lots
};
liveServer.start(params);