nitedani / vite-plugin-angular

Vite plugin for Angular, using esbuild and SWC
72 stars 5 forks source link

SSG support #13

Closed cskiwi closed 3 months ago

cskiwi commented 8 months ago

Hi,

I was wondering, is there any SSG / prerender support? I see it on some places popup, but I couldn't find any configuration in the vite-plugin-angular package.

Greetings Glenn

nitedani commented 8 months ago

Unfortunately, the plugin doesn't have built-in support for vanilla Angular universal pre-rendering. I think it's possible to be added with a few days of work.

The Vike integration/examples have support for pre-rendering. I plan to remove the Vike examples in this repo, and direct users to the new place at https://github.com/vikejs/vike-angular

cskiwi commented 3 months ago

I switched to alternative method where I figured to do all the things (still a bit hacky, but it works): https://github.com/cskiwi/angular-nestjs-starter