Преглед изворни кода

Add mjs as a file to serve statically (#4240)

.mjs is used to denote a ES Module Javascript file, separating it from .js which typically contains a CommonJS, AMD or direct browser code. .mjs is increasingly being used to deliver ESM files over the web, not just for package builders, through the use of import maps.
Allan Jardine пре 2 година
родитељ
комит
6813baa005
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      bin/v-add-web-domain

+ 1 - 1
bin/v-add-web-domain

@@ -194,7 +194,7 @@ if [ -n "$PROXY_SYSTEM" ]; then
 	PROXY_EXT="$proxy_ext"
 	if [ -z "$proxy_ext" ]; then
 		# Code
-		PROXY_EXT="css,htm,html,js,json,xml"
+		PROXY_EXT="css,htm,html,js,mjs,json,xml"
 		# Image (from https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types)
 		PROXY_EXT="$PROXY_EXT,apng,avif,bmp,cur,gif,ico,jfif,jpg,jpeg,pjp,pjpeg,png,svg,tif,tiff,webp"
 		# Audio from (https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Audio_codecs)