generated from violetadev/react-typescript-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-overrides.js
21 lines (19 loc) · 883 Bytes
/
config-overrides.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* eslint-disable no-param-reassign */
const path = require('path');
module.exports = function override(config) {
config.resolve.alias = Object.assign(config.resolve.alias, {
'@components': path.resolve(`${__dirname}/src/components`),
'@redux': path.resolve(`${__dirname}/src/redux`),
'@layouts': path.resolve(`${__dirname}/src/layouts`),
'@pages': path.resolve(`${__dirname}/src/pages`),
'@styles': path.resolve(`${__dirname}/src/styles`),
'@constants': path.resolve(`${__dirname}/src/constants`),
'@assets': path.resolve(`${__dirname}/src/assets`),
'@hocs': path.resolve(`${__dirname}/src/hocs`),
'@providers': path.resolve(`${__dirname}/src/providers`),
'@lang': path.resolve(`${__dirname}/src/lang`),
'@hooks': path.resolve(`${__dirname}/src/hooks`),
'@types': path.resolve(`${__dirname}/src/types`),
});
return config;
};