-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-overrides.js
24 lines (23 loc) · 1.01 KB
/
config-overrides.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
const { override, addPostcssPlugins, addWebpackAlias } = require('customize-cra');
const path = require('path');
module.exports = override(
addWebpackAlias({
'store': path.resolve(__dirname, './src/store'),
'actions': path.resolve(__dirname, './src/store/actions'),
'api': path.resolve(__dirname, './src/store/api'),
'reducers': path.resolve(__dirname, './src/store/reducers'),
'constants': path.resolve(__dirname, './src/constants'),
'components': path.resolve(__dirname, './src/components'),
'hooks': path.resolve(__dirname, './src/hooks'),
'utils': path.resolve(__dirname, './src/utils'),
'vector': path.resolve(__dirname, './src/assets/vector'),
'assets': path.resolve(__dirname, './src/assets'),
'views': path.resolve(__dirname, './src/views'),
}),
addPostcssPlugins([
require('postcss-flexbugs-fixes'),
require('postcss-preset-env'),
require('tailwindcss'),
require('autoprefixer'),
]),
);