refactor: module federation
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -44,8 +44,17 @@ export default defineConfig({
|
|||||||
'vue',
|
'vue',
|
||||||
'vue-router',
|
'vue-router',
|
||||||
'pinia',
|
'pinia',
|
||||||
|
'@KTXC',
|
||||||
|
/^@PeopleManager\//,
|
||||||
],
|
],
|
||||||
output: {
|
output: {
|
||||||
|
paths: (id) => {
|
||||||
|
if (id === '@KTXC') return '/js/ktxc.mjs'
|
||||||
|
if (id.startsWith('@PeopleManager/')) {
|
||||||
|
return '/modules/people_manager/static/module.mjs'
|
||||||
|
}
|
||||||
|
return id
|
||||||
|
},
|
||||||
assetFileNames: (assetInfo) => {
|
assetFileNames: (assetInfo) => {
|
||||||
if (assetInfo.name?.endsWith('.css')) {
|
if (assetInfo.name?.endsWith('.css')) {
|
||||||
return 'people-[hash].css'
|
return 'people-[hash].css'
|
||||||
|
|||||||
Reference in New Issue
Block a user