diff --git a/docs/examples/en/loaders/3DMLoader.html b/docs/examples/en/loaders/3DMLoader.html
index 38e736528c0f82..21eeb5834aef13 100644
--- a/docs/examples/en/loaders/3DMLoader.html
+++ b/docs/examples/en/loaders/3DMLoader.html
@@ -166,7 +166,7 @@
[method:Object3D load]( [param:String url], [param:Function onLoad], [param:
// Specify path to a folder containing WASM/JS libraries or a CDN.
// For example, /jsm/libs/rhino3dm/ is the location of the library inside the three.js repository
// loader.setLibraryPath( '/path_to_library/rhino3dm/' );
- loader.setLibraryPath( 'https://unpkg.com/rhino3dm@8.4.0/' );
+ loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/rhino3dm@8.4.0/' );
// Load a 3DM file
loader.load(
@@ -205,13 +205,13 @@ [method:Object3D parse]( [param:ArrayBuffer buffer], [param:Function onLoad]
- import rhino3dm from 'https://unpkg.com/rhino3dm@8.4.0'
+ import rhino3dm from 'https://cdn.jsdelivr.net/npm/rhino3dm@8.4.0'
// Instantiate a loader
const loader = new Rhino3dmLoader();
// Specify path to a folder containing WASM/JS libraries or a CDN.
- loader.setLibraryPath( 'https://unpkg.com/rhino3dm@8.4.0' );
+ loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/rhino3dm@8.4.0' );
const rhino = await rhino3dm();
console.log('Loaded rhino3dm.');
@@ -244,7 +244,7 @@ [method:this setLibraryPath]( [param:String value] )
// Specify path to a folder containing the WASM/JS library:
loader.setLibraryPath( '/path_to_library/rhino3dm/' );
// or from a CDN:
- loader.setLibraryPath( 'https://unpkg.com/rhino3dm@8.4.0' );
+ loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/rhino3dm@8.4.0' );
[method:this setWorkerLimit]( [param:Number workerLimit] )
diff --git a/docs/examples/zh/loaders/3DMLoader.html b/docs/examples/zh/loaders/3DMLoader.html
index 7ed48191374112..302a09fc264027 100644
--- a/docs/examples/zh/loaders/3DMLoader.html
+++ b/docs/examples/zh/loaders/3DMLoader.html
@@ -171,7 +171,7 @@ [method:Object3D load]( [param:String url], [param:Function onLoad], [param:
// Specify path to a folder containing WASM/JS libraries or a CDN.
// For example, /jsm/libs/rhino3dm/ is the location of the library inside the three.js repository
// loader.setLibraryPath( '/path_to_library/rhino3dm/' );
- loader.setLibraryPath( 'https://unpkg.com/rhino3dm@8.0.1/' );
+ loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/rhino3dm@8.0.1/' );
// Load a 3DM file
loader.load(
@@ -212,13 +212,13 @@ [method:Object3D parse]( [param:ArrayBuffer buffer], [param:Function onLoad]
- import rhino3dm from 'https://unpkg.com/rhino3dm@8.0.1'
+ import rhino3dm from 'https://cdn.jsdelivr.net/npm/rhino3dm@8.0.1'
// Instantiate a loader
const loader = new Rhino3dmLoader();
// Specify path to a folder containing WASM/JS libraries or a CDN.
- loader.setLibraryPath( 'https://unpkg.com/rhino3dm@8.0.1' );
+ loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/rhino3dm@8.0.1' );
const rhino = await rhino3dm();
console.log('Loaded rhino3dm.');
@@ -251,7 +251,7 @@ [method:this setLibraryPath]( [param:String value] )
// Specify path to a folder containing the WASM/JS library:
loader.setLibraryPath( '/path_to_library/rhino3dm/' );
// or from a CDN:
- loader.setLibraryPath( 'https://unpkg.com/rhino3dm@8.0.1' );
+ loader.setLibraryPath( 'https://cdn.jsdelivr.net/npm/rhino3dm@8.0.1' );
[method:this setWorkerLimit]( [param:Number workerLimit] )
diff --git a/docs/manual/ar/introduction/Installation.html b/docs/manual/ar/introduction/Installation.html
index d51cd50af2169f..808a2528628fcd 100644
--- a/docs/manual/ar/introduction/Installation.html
+++ b/docs/manual/ar/introduction/Installation.html
@@ -88,7 +88,7 @@ التثبيت من CDN أو استضافة ثابتة
<script type="importmap">
{
"imports": {
- "three": "https://unpkg.com/three@<version>/build/three.module.js"
+ "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js"
}
}
</script>
@@ -127,8 +127,8 @@ أمثلة
<script type="importmap">
{
"imports": {
- "three": "https://unpkg.com/three@<version>/build/three.module.js",
- "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/"
+ "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js",
+ "three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/"
}
}
</script>
diff --git a/docs/manual/en/introduction/Installation.html b/docs/manual/en/introduction/Installation.html
index 4050e36592f4c3..848c1741f17fe0 100644
--- a/docs/manual/en/introduction/Installation.html
+++ b/docs/manual/en/introduction/Installation.html
@@ -152,8 +152,8 @@ Development
<script type="importmap">
{
"imports": {
- "three": "https://unpkg.com/three@<version>/build/three.module.js",
- "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/"
+ "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js",
+ "three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/"
}
}
</script>
diff --git a/docs/manual/fr/introduction/Creating-a-scene.html b/docs/manual/fr/introduction/Creating-a-scene.html
index 8548c4b31e1216..4f9aee003fb03c 100644
--- a/docs/manual/fr/introduction/Creating-a-scene.html
+++ b/docs/manual/fr/introduction/Creating-a-scene.html
@@ -27,7 +27,7 @@ Avant de commencer
</head>
<body>
<script type="module">
- import * as THREE from 'https://unpkg.com/three/build/three.module.js';
+ import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js';
// Our Javascript will go here.
</script>
@@ -129,7 +129,7 @@ Le résultat
</head>
<body>
<script type="module">
- import * as THREE from 'https://unpkg.com/three/build/three.module.js';
+ import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js';
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
diff --git a/docs/manual/fr/introduction/Installation.html b/docs/manual/fr/introduction/Installation.html
index 21c56c3ab893d6..00ee2a81878637 100644
--- a/docs/manual/fr/introduction/Installation.html
+++ b/docs/manual/fr/introduction/Installation.html
@@ -71,7 +71,7 @@ Installer depuis un CDN ou un hébergement statique
<script type="importmap">
{
"imports": {
- "three": "https://unpkg.com/three@<version>/build/three.module.js"
+ "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js"
}
}
</script>
@@ -110,8 +110,8 @@ Addons
<script type="importmap">
{
"imports": {
- "three": "https://unpkg.com/three@<version>/build/three.module.js",
- "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/"
+ "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js",
+ "three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/"
}
}
</script>
diff --git a/docs/manual/it/introduction/Creating-a-scene.html b/docs/manual/it/introduction/Creating-a-scene.html
index fc759f57d68745..55af44f71dc5a4 100644
--- a/docs/manual/it/introduction/Creating-a-scene.html
+++ b/docs/manual/it/introduction/Creating-a-scene.html
@@ -30,7 +30,7 @@ Prima di iniziare
</head>
<body>
<script type="module">
- import * as THREE from 'https://unpkg.com/three/build/three.module.js';
+ import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js';
// Il nostro Javascript andrà qui
</script>
@@ -147,7 +147,7 @@ Il risultato
</head>
<body>
<script type="module">
- import * as THREE from 'https://unpkg.com/three/build/three.module.js';
+ import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js';
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
diff --git a/docs/manual/it/introduction/Installation.html b/docs/manual/it/introduction/Installation.html
index d7e36f784d947f..ee0bf000dbf907 100644
--- a/docs/manual/it/introduction/Installation.html
+++ b/docs/manual/it/introduction/Installation.html
@@ -72,7 +72,7 @@ Installazione da CDN o hosting statico
<script type="importmap">
{
"imports": {
- "three": "https://unpkg.com/three@<version>/build/three.module.js"
+ "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js"
}
}
</script>
@@ -110,8 +110,8 @@ Addons
<script type="importmap">
{
"imports": {
- "three": "https://unpkg.com/three@<version>/build/three.module.js",
- "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/"
+ "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js",
+ "three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/"
}
}
</script>
diff --git a/docs/manual/ja/introduction/Creating-a-scene.html b/docs/manual/ja/introduction/Creating-a-scene.html
index 45bbf763d0e45d..f15891d49bc1ba 100644
--- a/docs/manual/ja/introduction/Creating-a-scene.html
+++ b/docs/manual/ja/introduction/Creating-a-scene.html
@@ -27,7 +27,7 @@ 始める前に
</head>
<body>
<script type="module">
- import * as THREE from 'https://unpkg.com/three/build/three.module.js';
+ import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js';
// Our Javascript will go here.
</script>
@@ -130,7 +130,7 @@ 成果
</head>
<body>
<script type="module">
- import * as THREE from 'https://unpkg.com/three/build/three.module.js';
+ import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js';
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
diff --git a/docs/manual/ja/introduction/Installation.html b/docs/manual/ja/introduction/Installation.html
index 668480008a8a54..19ff845a4fc2de 100644
--- a/docs/manual/ja/introduction/Installation.html
+++ b/docs/manual/ja/introduction/Installation.html
@@ -72,7 +72,7 @@ CDNや静的ホスティングからインストールをする
<script type="importmap">
{
"imports": {
- "three": "https://unpkg.com/three@<version>/build/three.module.js"
+ "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js"
}
}
</script>
@@ -111,8 +111,8 @@ Addons
<script type="importmap">
{
"imports": {
- "three": "https://unpkg.com/three@<version>/build/three.module.js",
- "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/"
+ "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js",
+ "three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/"
}
}
</script>
diff --git a/docs/manual/ko/introduction/Creating-a-scene.html b/docs/manual/ko/introduction/Creating-a-scene.html
index 141056d3af79e1..2d98bd77d17052 100644
--- a/docs/manual/ko/introduction/Creating-a-scene.html
+++ b/docs/manual/ko/introduction/Creating-a-scene.html
@@ -28,7 +28,7 @@ 시작하기에 앞서
</head>
<body>
<script type="module">
- import * as THREE from 'https://unpkg.com/three/build/three.module.js';
+ import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js';
´
// Our Javascript will go here.
</script>
@@ -133,7 +133,7 @@ 결과 화면
</head>
<body>
<script type="module">
- import * as THREE from 'https://unpkg.com/three/build/three.module.js';
+ import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js';
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
diff --git a/docs/manual/ko/introduction/Installation.html b/docs/manual/ko/introduction/Installation.html
index 763e678480a07f..2d19a6cc41a445 100644
--- a/docs/manual/ko/introduction/Installation.html
+++ b/docs/manual/ko/introduction/Installation.html
@@ -80,7 +80,7 @@ static hosting 및 CDN을 통한 설치
<script type="importmap">
{
"imports": {
- "three": "https://unpkg.com/three@<version>/build/three.module.js"
+ "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js"
}
}
</script>
@@ -123,8 +123,8 @@ Addons
<script type="importmap">
{
"imports": {
- "three": "https://unpkg.com/three@<version>/build/three.module.js",
- "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/"
+ "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js",
+ "three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/"
}
}
</script>
diff --git a/docs/manual/pt-br/introduction/Creating-a-scene.html b/docs/manual/pt-br/introduction/Creating-a-scene.html
index 33641ac7e4ae74..4605255ea6bb86 100644
--- a/docs/manual/pt-br/introduction/Creating-a-scene.html
+++ b/docs/manual/pt-br/introduction/Creating-a-scene.html
@@ -27,7 +27,7 @@ Antes de começar
</head>
<body>
<script type="module">
- import * as THREE from 'https://unpkg.com/three/build/three.module.js';
+ import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js';
// Our Javascript will go here.
</script>
@@ -131,7 +131,7 @@ O resultado
</head>
<body>
<script type="module">
- import * as THREE from 'https://unpkg.com/three/build/three.module.js';
+ import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js';
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
diff --git a/docs/manual/pt-br/introduction/Installation.html b/docs/manual/pt-br/introduction/Installation.html
index 897ba81e76ad15..2fc34d14a48ef8 100644
--- a/docs/manual/pt-br/introduction/Installation.html
+++ b/docs/manual/pt-br/introduction/Installation.html
@@ -56,7 +56,7 @@ Instalar através de CDN ou hospedagem estática
<script type="importmap">
{
"imports": {
- "three": "https://unpkg.com/three@<version>/build/three.module.js"
+ "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js"
}
}
</script>
@@ -96,8 +96,8 @@ Addons
<script type="importmap">
{
"imports": {
- "three": "https://unpkg.com/three@<version>/build/three.module.js",
- "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/"
+ "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js",
+ "three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/"
}
}
</script>
diff --git a/docs/manual/ru/introduction/Creating-a-scene.html b/docs/manual/ru/introduction/Creating-a-scene.html
index 2adc7aa3e46039..5f312137923245 100644
--- a/docs/manual/ru/introduction/Creating-a-scene.html
+++ b/docs/manual/ru/introduction/Creating-a-scene.html
@@ -29,7 +29,7 @@ Прежде чем мы начнем
</head>
<body>
<script type="module">
- import * as THREE from 'https://unpkg.com/three/build/three.module.js';
+ import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js';
// Наш Javascript будет здесь..
</script>
@@ -130,7 +130,7 @@ Результат
</head>
<body>
<script type="module">
- import * as THREE from 'https://unpkg.com/three/build/three.module.js';
+ import * as THREE from 'https://cdn.jsdelivr.net/npm/three/build/three.module.js';
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
diff --git a/docs/manual/ru/introduction/Installation.html b/docs/manual/ru/introduction/Installation.html
index 14daa0a0a420ed..e8c183b181fc9e 100644
--- a/docs/manual/ru/introduction/Installation.html
+++ b/docs/manual/ru/introduction/Installation.html
@@ -95,7 +95,7 @@ Установка с CDN или статического хостинга
<script type="importmap">
{
"imports": {
- "three": "https://unpkg.com/three@<version>/build/three.module.js"
+ "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js"
}
}
</script>
@@ -140,8 +140,8 @@ Дополнения
<script type="importmap">
{
"imports": {
- "three": "https://unpkg.com/three@<version>/build/three.module.js",
- "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/"
+ "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js",
+ "three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/"
}
}
</script>
diff --git a/docs/manual/zh/introduction/Installation.html b/docs/manual/zh/introduction/Installation.html
index 3eecb284c5f146..0d42fdecfd4e87 100644
--- a/docs/manual/zh/introduction/Installation.html
+++ b/docs/manual/zh/introduction/Installation.html
@@ -151,8 +151,8 @@ 开发
<script type="importmap">
{
"imports": {
- "three": "https://unpkg.com/three@<version>/build/three.module.js",
- "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/"
+ "three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js",
+ "three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/"
}
}
</script>
diff --git a/editor/index.html b/editor/index.html
index 60e41dc0ef01aa..9b5dadfe4ff18f 100644
--- a/editor/index.html
+++ b/editor/index.html
@@ -52,8 +52,8 @@
"three/addons/": "../examples/jsm/",
"three/examples/": "../examples/",
- "three-gpu-pathtracer": "https://unpkg.com/three-gpu-pathtracer@0.0.19/build/index.module.js",
- "three-mesh-bvh": "https://unpkg.com/three-mesh-bvh@0.7.3/build/index.module.js"
+ "three-gpu-pathtracer": "https://cdn.jsdelivr.net/npm/three-gpu-pathtracer@0.0.19/build/index.module.js",
+ "three-mesh-bvh": "https://cdn.jsdelivr.net/npm/three-mesh-bvh@0.7.3/build/index.module.js"
}
}
diff --git a/examples/webgl2_ubo_arrays.html b/examples/webgl2_ubo_arrays.html
index 4715a8abf31bea..8d1c8a818af3bc 100644
--- a/examples/webgl2_ubo_arrays.html
+++ b/examples/webgl2_ubo_arrays.html
@@ -98,10 +98,6 @@
-
-
-
-
diff --git a/examples/webgl_loader_ifc.html b/examples/webgl_loader_ifc.html
index 61773d64cf0382..c46792b46b124b 100644
--- a/examples/webgl_loader_ifc.html
+++ b/examples/webgl_loader_ifc.html
@@ -23,9 +23,9 @@
"three": "../build/three.module.js",
"three/addons/": "./jsm/",
"three/examples/jsm/utils/BufferGeometryUtils": "./jsm/utils/BufferGeometryUtils.js",
- "three-mesh-bvh": "https://unpkg.com/three-mesh-bvh@0.5.23/build/index.module.js",
- "web-ifc": "https://unpkg.com/web-ifc@0.0.36/web-ifc-api.js",
- "web-ifc-three": "https://unpkg.com/web-ifc-three@0.0.126/IFCLoader.js"
+ "three-mesh-bvh": "https://cdn.jsdelivr.net/npm/three-mesh-bvh@0.5.23/build/index.module.js",
+ "web-ifc": "https://cdn.jsdelivr.net/npm/web-ifc@0.0.36/web-ifc-api.js",
+ "web-ifc-three": "https://cdn.jsdelivr.net/npm/web-ifc-three@0.0.126/IFCLoader.js"
}
}
@@ -72,7 +72,7 @@
//Setup IFC Loader
const ifcLoader = new IFCLoader();
- await ifcLoader.ifcManager.setWasmPath( 'https://unpkg.com/web-ifc@0.0.36/', true );
+ await ifcLoader.ifcManager.setWasmPath( 'https://cdn.jsdelivr.net/npm/web-ifc@0.0.36/', true );
await ifcLoader.ifcManager.parser.setupOptionalCategories( {
[ IFCSPACE ]: false,
diff --git a/examples/webgl_loader_texture_hdrjpg.html b/examples/webgl_loader_texture_hdrjpg.html
index a85060cf485f38..7fec207f879629 100644
--- a/examples/webgl_loader_texture_hdrjpg.html
+++ b/examples/webgl_loader_texture_hdrjpg.html
@@ -39,7 +39,7 @@
"imports": {
"three": "../build/three.module.js",
"three/addons/": "./jsm/",
- "@monogrid/gainmap-js": "https://unpkg.com/@monogrid/gainmap-js@3.0.0/dist/decode.js"
+ "@monogrid/gainmap-js": "https://cdn.jsdelivr.net/npm/@monogrid/gainmap-js@3.0.0/dist/decode.js"
}
}
diff --git a/examples/webgl_modifier_subdivision.html b/examples/webgl_modifier_subdivision.html
index 75f0edbd27bf75..aee4060bcddc6c 100644
--- a/examples/webgl_modifier_subdivision.html
+++ b/examples/webgl_modifier_subdivision.html
@@ -18,7 +18,7 @@
"imports": {
"three": "../build/three.module.js",
"three/addons/": "./jsm/",
- "three-subdivide": "https://unpkg.com/three-subdivide@1.1.2/build/index.module.js"
+ "three-subdivide": "https://cdn.jsdelivr.net/npm/three-subdivide@1.1.2/build/index.module.js"
}
}
@@ -324,4 +324,4 @@