Vue multi-page application

there are currently two vue projects with basically the same architecture. Is there any way to integrate the two projects into one? Suppose that Project An and Project B can directly introduce the package file of Project B on the basis of Project A. is there such a method? In this way, it is still equivalent to two projects, and it is more convenient to maintain. In fact, I also want to ask whether two vue projects can be introduced by packing files and directly jumping to the index page of another project by routing.


actually, it depends on what your scene needs. From the perspective of code management, how to maximize code reuse and maintenance? From the point of view of the project, whether there are many personalized requirements, such as vision, such as specific business logic. Personal suggestion is that if you stand on the former, it is OK to merge into one project. You can do a lot with webpack. The key depends on how you plan and think about it, but don't just think about the current level of the project, try to think about the long term. If it is from the perspective of the project, it depends on the specific scenarios and requirements. Personal opinion, for reference only!

Menu