Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Feature Request: Support SSR #101

Closed
Closed
@matthew-dean

Description

@matthew-dean

Rollup-plugin-vue relies on the vue-template-compiler vs vue-server-renderer package. As far as I can tell, one major distinction is that vue-server-render sets this line:

process.env.VUE_ENV = 'server';

One of the effects is that it allows you to output things like <script> tags from your template (rather than being stripped). I use using Rollup to generate static HTML files (that get hydrated on load in the browser to a "live" Vue component) based on https://ssr.vuejs.org/en.

So, basically, a feature request would be able to pass something like server: true to rollup-plugin-vue, and have it set process.env.VUE_ENV = 'server'. I know it's a small thing, but hopefully a documented feature would save someone else trying to figure out why Rollup can't generate static HTML using this plugin.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions