-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.config.js
34 lines (33 loc) · 1020 Bytes
/
server.config.js
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
const path = require('path')
const projectDirConstrutoConfig = require('./dir.construtor')
const resolve = file => path.resolve(__dirname, file)
module.exports = {
build: {
//where the host is?
host: '0.0.0.0',
//which port is?
port: 3000,
//where the html file to serve?
www: resolve('../dist'),
//what is the name of html files
index: resolve('../dist/index.html'),
//where the static file to serve?
public: projectDirConstrutoConfig.public,
//where the static file to copy by webpack?
static: projectDirConstrutoConfig.static,
},
dev: {
//where the host is?
host: 'localhost',
//which port is?
port: 8080,
//where the html file to serve?
www: resolve('../dist'),
//what is the name of html files
index: resolve('../src/ssr-index.template.html'),
//where the static file to serve?
public: projectDirConstrutoConfig.public,
//where the static file to copy by webpack?
static: projectDirConstrutoConfig.static,
}
}