-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
85 lines (81 loc) · 2.51 KB
/
vue.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
//Include package version in
process.env.VUE_APP_VERSION = require('./package.json').version
module.exports = {
publicPath: '/',
pages: {
home: {
// entry js for the page
entry: 'src/pages/home/main.js',
// the source template
template: 'src/pages/home/home.html',
// output as dist/index.html
filename: 'index.html',
// when using title option,
// template title tag needs to be <title><%= htmlWebpackPlugin.options.title %></title>
title: 'Bravo:Home',
// chunks to include on this page, by default includes
// extracted common chunks and vendor chunks.
chunks: ['chunk-vendors', 'chunk-common', 'home']
},
variant: {
entry: 'src/pages/variant/main.js',
template: 'src/pages/variant/variant.html',
title: 'Bravo:Variant',
chunks: ['chunk-vendors', 'chunk-common', 'variant']
},
region: {
entry: 'src/pages/region/main.js',
template: 'src/pages/region/region.html',
title: 'Bravo:Region',
chunks: ['chunk-vendors', 'chunk-common', 'region']
},
gene: {
entry: 'src/pages/gene/main.js',
template: 'src/pages/gene/gene.html',
title: 'Bravo:Gene',
chunks: ['chunk-vendors', 'chunk-common', 'gene']
},
terms: {
entry: 'src/pages/terms/main.js',
template: 'src/pages/terms/terms.html',
title: 'Bravo:Terms',
chunks: ['chunk-vendors', 'chunk-common', 'terms']
},
about: {
entry: 'src/pages/about/main.js',
template: 'src/pages/about/about.html',
title: 'Bravo:About',
chunks: ['chunk-vendors', 'chunk-common', 'about']
},
privacy: {
entry: 'src/pages/privacy/main.js',
template: 'src/pages/privacy/privacy.html',
title: 'Bravo:Privacy',
chunks: ['chunk-vendors', 'chunk-common', 'privacy']
},
login: {
entry: 'src/pages/login/main.js',
template: 'src/pages/login/login.html',
title: 'Bravo:Login',
chunks: ['chunk-vendors', 'chunk-common', 'login']
},
logout: {
entry: 'src/pages/logout/main.js',
template: 'src/pages/logout/logout.html',
title: 'Bravo:Logout',
chunks: ['chunk-vendors', 'chunk-common', 'logout']
},
404: {
entry: 'src/pages/about/main.js',
template: 'src/pages/about/terms.html',
filename: '404.html',
title: 'Bravo:404',
chunks: ['chunk-vendors', 'chunk-common', '404']
},
},
outputDir: 'dist',
devServer: {
historyApiFallback: false
},
lintOnSave: false
}