You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
334 B
JavaScript
13 lines
334 B
JavaScript
const path = require('path')
|
|
const { override, addDecoratorsLegacy } = require('customize-cra')
|
|
|
|
function resolve(dir) {
|
|
return path.join(__dirname, dir)
|
|
}
|
|
|
|
const customize = () => (config, env) => {
|
|
config.resolve.alias['@'] = resolve('src')
|
|
return config
|
|
};
|
|
module.exports = override(addDecoratorsLegacy(), customize())
|