mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
refactor(webapp): refactor branding diverse v2 (#8427)
* Set new 'config.resolve.alias' * Set new alias 'compilerOptions.paths'
This commit is contained in:
parent
c090db3866
commit
e58efb1ce0
@ -3,11 +3,20 @@
|
|||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"~/*": [
|
"~/*": [
|
||||||
"./*"
|
"*"
|
||||||
],
|
],
|
||||||
"~*": [
|
"~*": [
|
||||||
|
"*"
|
||||||
|
],
|
||||||
|
"~@": [
|
||||||
|
"*"
|
||||||
|
],
|
||||||
|
"@": [
|
||||||
|
"*"
|
||||||
|
],
|
||||||
|
"@@/*": [
|
||||||
"./*"
|
"./*"
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -270,6 +270,9 @@ export default {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
config.resolve.alias['~@'] = path.resolve(__dirname, '/')
|
||||||
|
config.resolve.alias['@@'] = path.resolve(__dirname, '/')
|
||||||
|
|
||||||
if (CONFIG.STYLEGUIDE_DEV) {
|
if (CONFIG.STYLEGUIDE_DEV) {
|
||||||
config.resolve.alias['@@'] = path.resolve(__dirname, `${styleguidePath}/src/system`)
|
config.resolve.alias['@@'] = path.resolve(__dirname, `${styleguidePath}/src/system`)
|
||||||
config.module.rules.push({
|
config.module.rules.push({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user