Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48983

Build ionic vue app as library to be used in a website

$
0
0

Hi there, is there a way to build an ionic vue app as a library so it can be injected in an existing website? I can get the vue app built as a library by running yarn build which is defined as

"build": "vue-cli-service build --target lib --formats=umd --name helloWorld src/main.ts"

However when I import the generated library into the existing website I can see vue finds the target div and injects the ion-app and ion-router tags but they have nothing inside. I have the feeling that running yarn build doesn’t include any ionic references and that’s why it’s not working. Any ideas?

Thanks

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48983

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>