-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcraco.config.js
30 lines (29 loc) · 881 Bytes
/
craco.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')
module.exports = {
reactScriptsVersion: 'react-scripts',
style: {
sass: {
loaderOptions: {
sassOptions: {
includePaths: ['node_modules', 'src/assets']
}
}
},
postcss: {
plugins: [require('postcss-rtl')()]
}
},
webpack: {
alias: {
'@src': path.resolve(__dirname, 'src'),
'@assets': path.resolve(__dirname, 'src/@core/assets'),
'@components': path.resolve(__dirname, 'src/@core/components'),
'@layouts': path.resolve(__dirname, 'src/@core/layouts'),
'@store': path.resolve(__dirname, 'src/redux'),
'@styles': path.resolve(__dirname, 'src/@core/scss'),
'@configs': path.resolve(__dirname, 'src/configs'),
'@utils': path.resolve(__dirname, 'src/utility/Utils'),
'@hooks': path.resolve(__dirname, 'src/utility/hooks')
}
}
}