Skip to content

Explanation needed: WebPack and SSR, how to interop between server and browser #209

@IngwiePhoenix

Description

@IngwiePhoenix

Hello!

I want to build an MVC framework (for my project) which will utilize Webpack for packaging the front-end for the browser, and that one may - or may not - include VueJS already.

Within the README, it is mentioned multiple times, that VueJS will be included off a CDN on the resulting HTML page - and that it can be disabled by setting version: false. However, why exactly is Vue needed in the browser, if the content is sent to the browser as already rendered content? I am personally new to Vue and personally come from Yii1 and Laravel (PHP) where there was barely any front-end needed, as everything was done on the server-side (except if you wanted some fancy additions - i never really used that much JS, except for an AJAX-based chat). So how come a copy of Vue is needed in the client?

Further, how exactly does the backend, prerendered Vue template interoperate with the browser? The state is being created and managed on the server - so, is it transfered to the client at all?

Sorry for asking within an issue ticket, I am not aware of any other discussion/Q&A channel for this project.

Kind regards,
Ingwie!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions