How to make devtool sourcemap work if I use .gz file?

Viewed 12

I have a ReactJS application and using webpack 5 for bundling. As my output file got bigger, I tried to use ".gz" file generated by CompressionPlugin. It seems working fine.

Now the problem is, if I load .gz instead of ".min.js", sourcemap in the devtool is not working. Any way we can create a sourcemap for .gz file?

0 Answers
Related