egoist / vue-client-only

Vue component to wrap non SSR friendly components (428 bytes)
MIT License
474 stars 37 forks source link

[BUG] using script inside client-only not working in the build #90

Open jhonata-menezes opened 4 years ago

jhonata-menezes commented 4 years ago

hello, using client-only with script does not work, in development mode the script is loaded but after the build does not work. I changed it to use with vue-meta, but I couldn't understand why these two different behaviors. Example

<client-only>
  <script src="https://www.google.com"></script>
</client-only>

I know it's not the right way to use it, but with <no-ssr> it worked