question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support pass all prerender-spa-plugin options

See original GitHub issue

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I’m always frustrated when […]

Describe the solution you’d like A clear and concise description of what you want to happen.

We can define more options which are feed to prerender-spa-plugin not only the renderer options in .prerender-spa.json.

Describe alternatives you’ve considered A clear and concise description of any alternative solutions or features you’ve considered.

Additional context Add any other context or screenshots about the feature request here.

Some async scripts write script tags into html and be rendered in pre-rendering. While user visit website these async scripts write twice thtese script tags. prerender-spa-plugin provides us postProcess option to cleanup the prerendered html. Need a way to configure that option.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
SolarLinercommented, Jan 2, 2019

I’ll add the ability to specify a file to run during post-processing in the configuration. It will execute the default export of that file.

0reactions
bigseecommented, Mar 27, 2019

@SolarLiner thank you for the work to add the postProcess option - super helpful, as is the plugin in general! 😀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prerender Vue.js Apps with prerender-spa-plugin v3
Render your Vue.js app to static pages at build-time with prerender-spa-plugin v3.
Read more >
prerender-spa-cdn-plugin - npm
Allows you to provide a custom console. * handler for pages. Argument one to your function is the route being rendered, argument two...
Read more >
prerender-spa-plugin not working on the server - Stack Overflow
js process with a non-zero exit code. My prerender-spa-plugin settings in webpack: new PrerenderSPAPlugin({ // Required - The path to the ...
Read more >
Boost SEO By Prerendering Your Vue Application - Morioh
vue-cli-plugin-prerender-spa Add prerender-spa-plugin into your Vue application with zero configuration.
Read more >
Scaffolding a Progressive Web App using Vue CLI 3
Please have a look at the Prerender SPA Plugin documentation for all its options. You can find a more advanced example in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found