single-spa / single-spa-vue

a single-spa plugin for vue.js applications
MIT License
182 stars 42 forks source link

How to setup SSR when using vue-cli? #107

Open svihpinc opened 1 year ago

svihpinc commented 1 year ago

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?

svihpinc commented 1 year ago

vue-cli-plugin-single-spa issue

filoxo commented 1 year ago

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?

svihpinc commented 1 year ago

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.

filoxo commented 1 year ago

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