Skip to content

Commit cde2d60

Browse files
committed
Fix up the source map url for the version tagged builds
1 parent 826b29a commit cde2d60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/make-release.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ build() {
9696
# version number on build file
9797
cp platform.min.js platform-${VERSION}.min.js
9898
cp platform.min.js.map platform-${VERSION}.min.js.map
99+
sed -i -e "s|\(//# sourceMappingURL=\)platform.min.js|\1platform-${VERSION}.min.js|" platform-${VERSION}.min.js
99100
mv platform{,-$VERSION}.min.js{,.map} ../
100101
ok
101102
popd >/dev/null
@@ -114,6 +115,7 @@ build() {
114115
# version number on build file
115116
cp polymer.min.js polymer-${VERSION}.min.js
116117
cp polymer.min.js.map polymer-${VERSION}.min.js.map
118+
sed -i -e "s|\(//# sourceMappingURL=\)polymer.min.js|\1polymer-${VERSION}.min.js|" polymer-${VERSION}.min.js
117119
mv build.log polymer{,-$VERSION}.min.js{,.map} ../
118120
ok
119121
popd >/dev/null

0 commit comments

Comments
 (0)