fixed webpack public path

This commit is contained in:
vabene1111
2021-10-14 12:20:31 +02:00
parent ba60fbdbb6
commit df31f7388e
4 changed files with 6 additions and 4 deletions

View File

@ -140,7 +140,9 @@ export default {
},
computed: {
headerComponent() {
return () => import(`@/components/${this.header_component_name}`)
// TODO this leads webpack to create one .js file for each component in this folder because at runtime any one of them could be requested
// TODO this is not necessarily bad but maybe there are better options to do this
return () => import(/* webpackChunkName: "header-component" */ `@/components/${this.header_component_name}`)
}
},
mounted() {