17 lines
440 B
JavaScript
17 lines
440 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = function override(config) {
|
|
console.log('Aliases before', config.resolve.alias);
|
|
config.resolve = {
|
|
...config.resolve,
|
|
alias: {
|
|
...config.alias,
|
|
'components': path.resolve(__dirname, 'src/components'),
|
|
'context': path.resolve(__dirname, 'src/context'),
|
|
'src': path.resolve(__dirname, 'src')
|
|
},
|
|
};
|
|
console.log('CONFIG', config);
|
|
return config;
|
|
};
|