How to run Vue.js from within iOS/Android app?
01:35 22 Feb 2019

Currently we have an app contains a webview, in webview the url address is our remote server. Problem is that when start app it will connect to our server to download html/js/css to show content. If network is slow, it will take long time to show a white screen.

For traditional html/css/js, we can just put all the contents in a local folder, then tell webview to load content from that local folder.

But we are using Vue.js. As you may know, even we build Vue.js to /dist folder, you cannot directly use file:// to access them, it must depends on a server.

So my question is: how can we run a small server in iOS/Android app to serve these /dist contents? So that webview can access http://localhost:8080 something to show the content.

Thank you!

android ios vue.js