-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-overrides.js
More file actions
23 lines (21 loc) · 954 Bytes
/
config-overrides.js
File metadata and controls
23 lines (21 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const path = require('path');
const { override, addWebpackAlias } = require('customize-cra');
module.exports = override(
addWebpackAlias({
'@api': path.resolve(__dirname, 'src/api'),
'@assets': path.resolve(__dirname, 'src/assets'),
'@constants': path.resolve(__dirname, 'src/constants'),
'@components': path.resolve(__dirname, 'src/components'),
'@data': path.resolve(__dirname, 'src/data'),
'@hooks': path.resolve(__dirname, 'src/hooks'),
'@pages': path.resolve(__dirname, 'src/pages'),
'@portals': path.resolve(__dirname, 'src/portals'),
'@query': path.resolve(__dirname, 'src/query'),
'@router': path.resolve(__dirname, 'src/router'),
'@socket': path.resolve(__dirname, 'src/socket'),
'@store': path.resolve(__dirname, 'src/store'),
'@styles': path.resolve(__dirname, 'src/styles'),
'@type': path.resolve(__dirname, 'src/type'),
'@utils': path.resolve(__dirname, 'src/utils'),
}),
);