nginx/README.mime.type-javascript-mjs

16 lines
294 B
Plaintext

# ---
# Serving mjs files with nginx
# ---
# In file '/etc/nginx/mime.types' find line
#
# application/javascript js;
#
# and replace this line with
#
#
# application/javascript js mjs;
#
perl -i -n -p -e "s#^(\s*application/javascript\s+)js;#\1js mjs;#" /etc/nginx/mime.types