Sfoglia il codice sorgente

Strip sourceMappingURL lines from release files

This avoids unnecessary 404 requests.
Danilo Bargen 6 anni fa
parent
commit
13cd783a7f
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      dist/package.sh

+ 1 - 0
dist/package.sh

@@ -83,6 +83,7 @@ for target in "${targets[@]}"; do
     else
         install -D "node_modules/$target" "$DIR/node_modules/$target"
     fi
+    sed -i "/sourceMappingURL/d" "$DIR/node_modules/$target"
 done
 
 echo "+ Update version number..."