-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfig-overrides.js
More file actions
24 lines (22 loc) · 902 Bytes
/
Copy pathconfig-overrides.js
File metadata and controls
24 lines (22 loc) · 902 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
const path = require('path');
module.exports = function override(config) {
config.resolve = {
...config.resolve,
alias: {
...config.alias,
'/*': path.resolve(__dirname, 'src/*'),
'app/*': path.resolve(__dirname, 'src/app/*'),
'assets/*': path.resolve(__dirname, 'src/assets/*'),
'common/*': path.resolve(__dirname, 'src/common/*'),
'components/*': path.resolve(__dirname, 'src/components/*'),
'containers/*': path.resolve(__dirname, 'src/containers/*'),
'context/*': path.resolve(__dirname, 'src/context/*'),
'hocs/*': path.resolve(__dirname, 'src/hocs/*'),
'hooks/*': path.resolve(__dirname, 'src/hooks/*'),
'styles/*': path.resolve(__dirname, 'src/styles/*'),
'validation/*': path.resolve(__dirname, 'src/validation/*'),
'features/*': path.resolve(__dirname, 'src/features/*'),
},
};
return config;
};