MPH-Bali / green-village-project

Powering MPH recycling and composting facilities in Bali
MIT License
9 stars 8 forks source link

[bleeding edge] Code split manager and public parts #239

Open JollyBrackets opened 6 years ago

JollyBrackets commented 6 years ago

https://www.youtube.com/watch?v=rn97hCNQsKI&feature=youtu.be

roma219 commented 6 years ago

@JollyBrackets For this we will need to revert this image to be able to use import() function on specific components.

JollyBrackets commented 6 years ago

yeah I know.. but this makes development easier =) So once we're happy with the overall app we can do optimisations like this. What do you think?

roma219 commented 6 years ago

@JollyBrackets Sure, we are not in a hurry with this i think.

And i was thinking about that we might wanna try to do something like this global registering of all the needed components inside Manager.vue component, so that we'll have only 2 bundle chunks - 1 for Public and 1 for Manager, that would load fully when user navigates to "/manager". Because without it we'd need a lot of chunks to fully split the manager part (as i understand correctly how code splitting in webpack + vue works).