-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpoi.config.js
52 lines (52 loc) · 1.52 KB
/
poi.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
module.exports = {
output: {
html: {
title: 'Grapheel IRIS',
},
},
pages: {
index: {
entry: './src/client/main/index.jsx',
title: 'Grapheel IRIS',
},
'volunteer/index': {
entry: './src/client/volunteer/index.jsx',
title: 'Grapheel IRIS',
},
'student/index': {
entry: './src/client/student/index.jsx',
title: 'Grapheel IRIS',
},
// 'licence-owner': {
// entry: './src/client/licence-owner/index.jsx',
// title: 'Grapheel IRIS',
// },
},
devServer: {
hotEntries: ['index', 'student/index', 'volunteer/index'], // , 'licence-owner/index'],
hot: true,
historyApiFallback: {
rewrites: [
{ from: /^\/login.*?$/, to: '/index.html' },
{ from: /^\/create.*?$/, to: '/index.html' },
{ from: /^\/student.*?$/, to: '/student/index.html' },
{ from: /^\/volunteer.*?$/, to: '/volunteer/index.html' },
],
},
},
// chainWebpack: (config) => {
// // add the service workers
// config.entry('service-worker/student')
// .add('./src/client/student/service-worker/service-worker.js')
// .end();
// config.entry('service-worker/volunteer')
// .add('./src/client/volunteer/service-worker/service-worker.js')
// .end();
// // this might impact global config, not just service workers, but ahh well
// config.output
// .filename('[name].bundle.js')
// // workaround for "window is not defined"
// .globalObject('this');
// return null;
// },
};