forked from thorchain/thornode-network
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-overrides.js
26 lines (25 loc) · 944 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
22
23
24
25
26
var path = require('path');
const { override, fixBabelImports, addWebpackAlias } = require('customize-cra');
module.exports = function(config, env) {
return Object.assign(
config,
override(
fixBabelImports('import', {
libraryName: 'antd',
libraryDirectory: 'es',
style: 'css',
}),
// add an alias for "our" imports
addWebpackAlias({
'@iso/assets': path.resolve(__dirname, 'src/assets'),
'@iso/components': path.resolve(__dirname, 'src/components'),
'@iso/config': path.resolve(__dirname, 'src/config'),
'@iso/containers': path.resolve(__dirname, 'src/containers'),
'@iso/redux': path.resolve(__dirname, 'src/redux'),
'@iso/lib': path.resolve(__dirname, 'src/library'),
'@iso/ui': path.resolve(__dirname, 'src/UI'),
'CommonFunctions': path.resolve(__dirname, 'src/commonFunctions.js'),
})
)(config, env)
);
};