What if a vue-cli project contains both mobile-side pages and PC-side pages?

the PC page of my project has been completed, and the vue-cli
I use now needs to be a mobile page. I also plan to use vue-cli, so I want to put the mobile page in the existing PC project. I don"t want to create another project.

so I need to know how to configure webpack and how to avoid code redundancy (such as when the phone loads libraries on the PC that I don"t use)

Thank you


I think only the new directory will be created. Otherwise, there will be all kinds of troubles


https://codeshelper.com/q/10.. Have you asked the same question twice?


this is done on a multi-page shelf, because the template pages need to be separated

you can refer to the multi-page shelf I wrote earlier: https://codeshelper.com/a/11.

.
Menu