Cordova/Webpack desktop layout

Hello,
we are using the Vue+F7+Webpack+Cordova template.
We created our mobile app, and we want to have our service accessible also via desktop pc (web app).

Our idea was to have separate folders for desktop and mobile layouts (.vue files).
How can we exclude the folder with desktop layouts for the “compilation” on mobile, and viceversa?
Do we need to have 2 separate app.js files?
How do we do it all?
Sorry for asking but we’re using the provided template without fully knowing Cordova, and without any understanding at all of Webpack…

Thanks to anyone helping us

Yes, could better if you have separate app.js files (webpack entry points) and to configure webpack to use different entry when cordova build or website build. Check the webpack.config.js file. It should be pretty clear there