From c76bbcd3e64eda7305510f3ace000edef58a9f81 Mon Sep 17 00:00:00 2001 From: Anton Lavrenov Date: Wed, 10 Oct 2018 13:34:18 -0500 Subject: [PATCH] fix CDN --- README.md | 6 +++--- release.sh | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f5e30ca1..81ad29c8 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ This repository began as a GitHub fork of [ericdrowell/KineticJS](https://github # Quick Look ```html - +
+ ``` -You can use CDN: [https://cdn.rawgit.com/konvajs/konva/1.7.3/konva.min.js](https://cdn.rawgit.com/konvajs/konva/1.7.3/konva.min.js) +You can use CDN: [https://unpkg.com/konva@2.4.1/konva.js](https://unpkg.com/konva@2.4.1/konva.js) ### 2 Load via AMD (requirejs): diff --git a/release.sh b/release.sh index d4d7c428..b80cbe60 100755 --- a/release.sh +++ b/release.sh @@ -4,11 +4,12 @@ set -e old_version="$(git describe --abbrev=0 --tags)" new_version=$1 -old_cdn="https://cdn.rawgit.com/konvajs/konva/${old_version}/konva.js" -new_cdn="https://cdn.rawgit.com/konvajs/konva/${new_version}/konva.js" -old_cdn_min="https://cdn.rawgit.com/konvajs/konva/${old_version}/konva.min.js" -new_cdn_min="https://cdn.rawgit.com/konvajs/konva/${new_version}/konva.min.js" +old_cdn="https://unpkg.com/konva@${old_version}/konva.js" +new_cdn="https://unpkg.com/konva@${new_version}/konva.js" + +old_cdn_min="https://unpkg.com/konva@${old_version}/konva.min.js" +new_cdn_min="https://unpkg.com/konva@${old_version}/konva.min.js" # make sure new version parameter is passed if [ -z "$1" ]