-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathserver.js
More file actions
41 lines (35 loc) · 977 Bytes
/
server.js
File metadata and controls
41 lines (35 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Serve files from the app directory
server: "app"
// Serve files from the current directory
server: true
// Serve files from the app directory with directory listing
server: {
baseDir: "app",
directory: true
}
// Multiple base directories
server: ["app", "dist"]
// Serve files from the app directory, with a specific index filename
server: {
baseDir: "app",
index: "index.htm"
}
// The static file server is based on expressjs/serve-static,
// so we inherit all of their options, like trying a default extension
// when one isn't specified
// https://github.com/expressjs/serve-static
server: {
baseDir: "app",
serveStaticOptions: {
extensions: ["html"]
}
}
// Since version 1.2.1
// The key is the url to match (can't match any existing file yet)
// The value is which folder to serve (relative to your current working directory)
server: {
baseDir: "app",
routes: {
"/bower_components": "bower_components"
}
}