Home

Issue: 2478

Serve Web Components made with VueJS using Nuxt

[issue link]

I’m using vue-custom-element that helps to make a vuejs component build into a single js file where I can embed it on any website.

The scripts may look like this:

<html>
  <head>
    <script src="link/to/jquery/angular/react/vue/or/something"></script>
  </head>
  <body>
    ...
    <my-component></my-component>
    <script src="app.js"></script>
    ...
  </body>
</html>

It works using vue-custom-element. Is there any way to make it work with Nuxt? Because that component has to fetch some data from the server in order to render it. So if I can make it SSR using Nuxt that would be great! Or any other suggestions?

What I’m building is a chat widget using vuejs. That chat widget can be embedded on any website

This feature request is available on Nuxt.js community (#c2150)