This gist describes how to bundle a built Vue.js project – the dist
folder – together with a local web server in a stand-alone executable (no Node.js installation needed on the client).
When we want to present a completed Vue project to a third party (a client, a collaborator, etc.), we cannot just send the dist
folder and explain how to open the index.html
file. This won’t work because Vue presupposes a web server to run (at least as long as we don't manipulate the publicPath
configuration). Setting up a whole web hosting environment, organizing a domain name, and securing it with a server lock, among other things, can be a bit much. On the other hand, explaining someone with no technical background how to install Node.js and run a local web server just to see our project is equally inconvenient. This can be a problem.