forked from pavloniym/anilibrix
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathwebpack.config.js
30 lines (28 loc) · 1005 Bytes
/
webpack.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
const path = require('path');
// Resolve path
// Starting from root by default
const resolve = function (dir) {
return path.join(__dirname, dir);
};
module.exports = {
resolve: {
alias: {
'@': resolve('src'),
'@main': resolve('src/main'),
'@package': resolve('package.json'),
'@router': resolve('src/renderer/router'),
'@store': resolve('src/renderer/store'),
'@plugins': resolve('src/renderer/plugins'),
'@views': resolve('src/renderer/views'),
'@components': resolve('src/renderer/components'),
'@assets': resolve('src/renderer/assets'),
'@transformers': resolve('src/renderer/transformers'),
'@transformer': resolve('src/renderer/transformers/Transformer'),
'@layouts': resolve('src/renderer/layouts'),
'@proxies': resolve('src/renderer/proxies'),
'@proxy': resolve('src/renderer/proxies/Proxy'),
'@utils': resolve('src/renderer/utils'),
'@mixins': resolve('src/renderer/mixins'),
},
},
};