mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +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": ".",
|
||||
"paths": {
|
||||
"~/*": [
|
||||
"./*"
|
||||
"*"
|
||||
],
|
||||
"~*": [
|
||||
"*"
|
||||
],
|
||||
"~@": [
|
||||
"*"
|
||||
],
|
||||
"@": [
|
||||
"*"
|
||||
],
|
||||
"@@/*": [
|
||||
"./*"
|
||||
],
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -270,6 +270,9 @@ export default {
|
||||
},
|
||||
}
|
||||
|
||||
config.resolve.alias['~@'] = path.resolve(__dirname, '/')
|
||||
config.resolve.alias['@@'] = path.resolve(__dirname, '/')
|
||||
|
||||
if (CONFIG.STYLEGUIDE_DEV) {
|
||||
config.resolve.alias['@@'] = path.resolve(__dirname, `${styleguidePath}/src/system`)
|
||||
config.module.rules.push({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user