vue.js – How do I turn an entire vue app into a Module

I have built a simple Vue app. Currently it only has one screen.

I am trying to convert this app into a “module”. ie: I want to be able to give somebody a script tag. They put that script tag into a generic HTML page. And when that script tag loads, it should render my VUE app.

I could give them an iframe, but I’m trying to do it via a Script Tag so that they could skin the app using their own CSS.

Can anybody guide me into where to start with this? I am using CLI VUE; so there are some files getting built. Is there a better approach than simply giving URLs to all the JSS and CSS files that are currently being generated by webpack?

Read more here: Source link