Support pass all prerender-spa-plugin options
See original GitHub issueIs 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:
- Created 5 years ago
- Comments:8 (5 by maintainers)

Top Related StackOverflow Question
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.
@SolarLiner thank you for the work to add the postProcess option - super helpful, as is the plugin in general! 😀