G
G
gifon2022-01-16 08:43:40
webpack
gifon, 2022-01-16 08:43:40

Compression Webpack Plugin + Prerender SPA Plugin?

Hello I am using

[email protected]
@dreysolano/[email protected]

but they don't work together (the compression plugin compresses before the prerender and the prerender doesn't prerender anything), can this be fixed))
Actually in the prerender source
compiler.hooks.afterEmit.tapAsync(plugin, afterEmit)
https://github.com/dreysolano/prerender-spa-plugin...
and in compression sources
compiler.hooks.thisCompilation.tap(pluginName, (compilation) => {
      compilation.hooks.processAssets.tapPromise(

https://github.com/webpack-contrib/compression-web...
compression is faster - is it possible to change plugin hooks without editing the code of the plugin itself (only for a local project) - or what to do in such a situation when a prerender is also needed and compression?
Theoretically, there would be no problem if the prerender could parse brotli, but I could not find any mention of this ...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question