Is there anyway to prevent auto minify removing sourceMappingURL?

My site has generated source map for css and js for debug purpose, but seems Cloudflare auto minify removed the //# sourceMappingURL=xxxxxx comment.

Is there anyway to prevent this? Thanks a lot!

You can either include .min in their filenames (https://support.cloudflare.com/hc/en-us/articles/200169876-Why-isn-t-Auto-Minify-working-) or use a page rule with ‚ÄúDisable performance‚ÄĚ to skip minification.

1 Like

This topic was automatically closed after 14 days. New replies are no longer allowed.