-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.common.js
40 lines (31 loc) · 971 Bytes
/
webpack.common.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
const path = require('path');
module.exports = {
'entry': './sources/index.js',
'mode': 'none',
'module': {
'rules': [
{
'test': /\.ogg|\.png|\.wav$/,
'use': [
{
'loader': 'url-loader'
}
]
}
]
},
'output': {
'path': path.resolve(__dirname, 'docs/'),
'filename': 'index.js'
},
'resolve': {
'alias': {
'assets': path.resolve(__dirname, 'sources/game/assets/'),
'components': path.resolve(__dirname, 'sources/game/components/'),
'scenes': path.resolve(__dirname, 'sources/game/scenes/'),
'systems': path.resolve(__dirname, 'sources/game/systems/'),
'core': path.resolve(__dirname, 'sources/theatre/core/'),
'modules': path.resolve(__dirname, 'sources/theatre/modules/')
}
}
};