Nuxt Prune Html Versions Save

🔌⚡ Nuxt module to prune html before sending it to the browser (it removes elements matching CSS selector(s)), useful for boosting performance showing a different HTML for bots/audits by removing all the scripts with dynamic rendering

v2.0.5

1 year ago

v2.0.0

3 years ago

Mobile Detect library it's now optional, used only to prune from types: [ 'default-detect' ].

Added types: [ 'headers-exist' ] to check for a header-value to compare from the configuration, a match will trigger the prune. Added types: [ 'query-parameters' ] to check for a query-parameter-value to compare from the configuration, a match will trigger the prune.

You can combine and use all of this types together.

v1.5.0

3 years ago

This release is based on the Mobile Detect library and the main feature is to prune all the generated Javascript based on the user-agent present in the requests headers, for bots or audits.