Feature Request: Support SSR #101
Description
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.