Created
September 9, 2024 10:47
-
-
Save sudo-barun/0a1caa96a699272695539b9ae768107e to your computer and use it in GitHub Desktop.
set SourceMap header when requesting JS file in Apache server (httpd)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_headers.c> | |
<If "%{REQUEST_URI} =~ /\.js$/ && -f '%{REQUEST_FILENAME}' && -f '%{REQUEST_FILENAME}.map'"> | |
Header set SourceMap "expr=%{REQUEST_URI}.map" | |
</If> | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment