瀏覽代碼

Strip sourceMappingURL lines from release files

This avoids unnecessary 404 requests.
Danilo Bargen 6 年之前
父節點
當前提交
13cd783a7f
共有 1 個文件被更改,包括 1 次插入0 次删除
  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..."