From 1ef3fae1fe6cc4b7a1340b7db57b41918468ce85 Mon Sep 17 00:00:00 2001 From: FateRiddle Date: Tue, 24 Dec 2019 16:24:53 +0800 Subject: [PATCH] use jsdelivr instead of unpkg as cdn for stability --- demo/index.html | 53 +++++++++++++++++++++--------------------- docs/demo/index.html | 55 ++++++++++++++++++++++---------------------- index.html | 4 ++-- 3 files changed, 56 insertions(+), 56 deletions(-) diff --git a/demo/index.html b/demo/index.html index 824d798..48d77f0 100755 --- a/demo/index.html +++ b/demo/index.html @@ -1,30 +1,31 @@ - - - - FormRender Playground<% (htmlWebpackPlugin.options.resources.css || []).forEach(function(path) { %> - - <% }) %> - - -
-<% (htmlWebpackPlugin.options.resources.js || []).forEach(function(path) { %> - -<% }) %> - + <% }) %> + - + if (window.location.port === '9000') { + loadScript('main.bundle.js'); + } else { + loadScript('//cdn.jsdelivr.net/npm/form-render/docs/demo/main.bundle.js'); + } + + diff --git a/docs/demo/index.html b/docs/demo/index.html index 83fdd39..c596e5c 100644 --- a/docs/demo/index.html +++ b/docs/demo/index.html @@ -1,38 +1,37 @@ - - - - FormRender Playground - - - - -
+ + + + FormRender Playground + + + +
- + - + - + - + - + - - + if (window.location.port === '9000') { + loadScript('main.bundle.js'); + } else { + loadScript('//cdn.jsdelivr.net/npm/form-render/docs/demo/main.bundle.js'); + } + + diff --git a/index.html b/index.html index daf3baf..a6fea07 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,7 @@ content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" /> - +
Loading
@@ -56,6 +56,6 @@ navigator.serviceWorker.register('./docs/dist/sw.js'); } - +