-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvue.config.js
98 lines (97 loc) · 3.74 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
86
87
88
89
90
91
92
93
94
95
96
97
98
// vue.config.js
module.exports = {
//baseUrl: '/SmoothieWebInterface/dist/',
//baseUrl: process.env.NODE_ENV === 'production' ? '/SmoothieWebInterface/dist/' : '/',
//"baseUrl" option in vue.config.js is deprecated now, please use "publicPath" instead.
pages: {
index: {
// entry for the page
entry: 'src/index/main.js',
// the source template
template: 'public/index.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: 'Index Page',
// chunks to include on this page, by default includes
// extracted common chunks and vendor chunks.
chunks: ['chunk-vendors', 'chunk-common', 'index']
},
connect: {
// entry for the page
entry: 'src/connect/main.js',
// the source template
template: 'public/index.html',
// output as dist/index.html
filename: 'connect.html',
// when using title option,
// template title tag needs to be <title><%= htmlWebpackPlugin.options.title %></title>
title: 'Connect Page',
// chunks to include on this page, by default includes
// extracted common chunks and vendor chunks.
chunks: ['chunk-vendors', 'chunk-common', 'connect']
},
make: {
// entry for the page
entry: 'src/make/main.js',
// the source template
template: 'public/index.html',
// output as dist/index.html
filename: 'make.html',
// when using title option
// template title tag needs to be <title><%= htmlWebpackPlugin.options.title %></title>
title: 'Make Page',
// chunks to include on this page, by default includes
// extracted common chunks and vendor chunks.
chunks: ['chunk-vendors', 'chunk-common', 'make']
},
monitor: {
// entry for the page
entry: 'src/monitor/main.js',
// the source template
template: 'public/index.html',
// output as dist/index.html
filename: 'monitor.html',
// when using title option
// template title tag needs to be <title><%= htmlWebpackPlugin.options.title %></title>
title: 'Monitor Page',
// chunks to include on this page, by default includes
// extracted common chunks and vendor chunks.
chunks: ['chunk-vendors', 'chunk-common', 'monitor']
},
system: {
// entry for the page
entry: 'src/system/main.js',
// the source template
template: 'public/index.html',
// output as dist/index.html
filename: 'system.html',
// when using title option
// template title tag needs to be <title><%= htmlWebpackPlugin.options.title %></title>
title: 'System Page',
// chunks to include on this page, by default includes
// extracted common chunks and vendor chunks.
chunks: ['chunk-vendors', 'chunk-common', 'system']
},
config_machine: {
// entry for the page
entry: 'src/config/machine/main.js',
// the source template
template: 'public/index.html',
// output as dist/index.html
filename: 'config_machine.html',
// when using title option
// template title tag needs to be <title><%= htmlWebpackPlugin.options.title %></title>
title: 'Machine Configuration Page',
// chunks to include on this page, by default includes
// extracted common chunks and vendor chunks.
chunks: ['chunk-vendors', 'chunk-common', 'config_machine']
},
// when using the entry-only string format,
// template is inferred to be `public/subpage.html`
// and falls back to `public/index.html` if not found.
// Output filename is inferred to be `subpage.html`.
//subpage: 'src/subpage/main.js'
}
}