-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.server.js
More file actions
41 lines (29 loc) · 820 Bytes
/
Copy pathwebpack.server.js
File metadata and controls
41 lines (29 loc) · 820 Bytes
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
/****************************************/
/****** WEBPACK SERVER CONFIG *********/
/****************************************/
const WEBPACK_CONFIG = {};
/************************************/
/******** INPUT *******/
/************************************/
const input = {
name: 'server',
target: 'node',
entry: [
'./src/server/main.js',
]
};
//extend properties to config
Object.assign(WEBPACK_CONFIG, input);
/************************************/
/******** OUTPUT *******/
/************************************/
const output = {
output: {
publicPath: '/',
path: __dirname + "/build",
filename: "server.bundle.js"
}
};
//extend properties to config
Object.assign(WEBPACK_CONFIG, output);
module.exports = WEBPACK_CONFIG;