Skip to content

Instantly share code, notes, and snippets.

@sudo-barun
Created September 9, 2024 10:47
Show Gist options
  • Save sudo-barun/0a1caa96a699272695539b9ae768107e to your computer and use it in GitHub Desktop.
Save sudo-barun/0a1caa96a699272695539b9ae768107e to your computer and use it in GitHub Desktop.
set SourceMap header when requesting JS file in Apache server (httpd)
<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