vue-cli-plugin-prerender-spa
vue-cli-plugin-prerender-spa copied to clipboard
Add server configuration options
Is your feature request related to a problem? Please describe.
I need to add server configuration options to prerender-spa-plugin. I specifically want to configure a proxy.
module.exports = {
plugins: [
...
new PrerenderSPAPlugin({
...
// Server configuration options.
server: {
/* I need to add stuff here! */
},
Describe the solution you'd like
Patch index.js:
diff --git a/old b/new
index e4e155a..1515509 100644
--- a/old
+++ b/new
@@ -26,6 +26,7 @@ function chain(api, projectOptions) {
const prerenderOptions = {
...paths,
routes: options.renderRoutes,
+ server: options.server,
renderer,
postProcess: renderedRoute => {
const route = renderedRoute.route;
Describe alternatives you've considered
I could not find an alternative, other than dropping this plugin and using https://github.com/chrisvfritz/prerender-spa-plugin directly.
Would be really great to be able to pass Server-Options as suggested here! Unfortunately we also have to drop this plugin as we need to pass Options to the Server (Proxy settings). To bad :(