Adjust .htaccess to serve .mjs files with javascript mime type

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2023-03-16 15:57:51 +01:00
parent a3595f73ac
commit d461da3b04

View file

@ -78,6 +78,8 @@
AddType image/svg+xml svg svgz
AddType application/wasm wasm
AddEncoding gzip svgz
# Serve ESM javascript files (.mjs) with correct mime type
AddType text/javascript js mjs
</IfModule>
<IfModule mod_dir.c>