-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver-src.js
More file actions
18 lines (16 loc) · 757 Bytes
/
server-src.js
File metadata and controls
18 lines (16 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var liveServer = require('live-server')
var params = {
port: 9000, // Set the server port. Defaults to 8080.
host: "localhost", // Set the address to bind to. Defaults to 0.0.0.0 or process.env.IP.
root: "./public", // Set root directory that's being served. Defaults to cwd.
open: false, // When false, it won't load your browser by default.
ignore: 'scss,my/templates', // comma-separated string for paths to ignore
wait: 1000, // Waits for all changes, before reloading. Defaults to 0 sec.
mount: [
['/jspm_packages', './jspm_packages'],
['/config.js', './config.js'],
['/src', './src']
], // Mount a directory to a route.
logLevel: 2, // 0 = errors only, 1 = some, 2 = lots
}
liveServer.start(params)