-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathvue.config.js
More file actions
44 lines (41 loc) · 1.06 KB
/
vue.config.js
File metadata and controls
44 lines (41 loc) · 1.06 KB
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
42
43
44
const path = require('path')
const PORT = 8550
const DEV_HOST = 'vmep.com'
/**
* https://cli.vuejs.org/config/#pages
*/
module.exports = {
pages: {
index: {
entry: 'src/index/main.js',
template: 'public/index.html',
filename: 'index.html',
title: 'Index Page',
chunks: ['chunk-vendors', 'chunk-common', 'index']
},
manage: {
entry: 'src/manage/main.js',
template: 'public/index.html',
filename: 'manage/index.html',
title: 'Manage Page',
chunks: ['chunk-vendors', 'chunk-common', 'manage']
},
dashboard: {
entry: 'src/dashboard/main.js',
template: 'public/index.html',
filename: 'dashboard/index.html',
title: 'Dashboard Page',
chunks: ['chunk-vendors', 'chunk-common', 'dashboard']
}
},
devServer: {
port: PORT,
historyApiFallback: {
rewrites: [
{ from: /^\/manage\/?.*/, to: path.posix.join('/', 'manage/index.html') },
{ from: /./, to: path.posix.join('/', 'index.html') }
]
},
allowedHosts: [DEV_HOST]
}
}