single-spa / single-spa-vue

a single-spa plugin for vue.js applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to setup SSR when using vue-cli?

svihpinc opened this issue · comments

I've used create-single-spa to generate a vue-cli based vue@2 project.

In the react example of single-spa SSR here: navbar webpack config, webpack is used to create a server.mjs file, which is then imported by root-config and server rendered

How to do this in a vue-cli project? How to setup webpack to bundle for node target too?

How to do this in a vue-cli project? How to setup webpack to bundle for node target too?

The purpose of the examples are for the community to help us achieve feature parity. I can help you if you put in the work because our team will never be able to make an example for every framework/ecosystem. Are you willing to put in this work?

I understand, and I'm willing to do it. But it will be a bit slow. I'll try to create a draft PR, but there's no guarantees.

If possible, I would request you to keep this issue open though, so that if not me, then someone else might work on it.

sounds great to me! I should be available to help give a general direction and review code.