Regarding loading three addons (for v160+), you need to add an importmap in head.html and a <script type="module"> to store the object(s) on the window.
<!-- Three.js 160+ requires the use of import maps to use the Three.js renderer in projects -->
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.160.0/build/three.module.min.js",
"three/addons/": "https://unpkg.com/three@0.160.0/examples/jsm/"
}
}
</script>
<script type="module">
import * as THREE from 'three';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
window.THREE = THREE;
window.GLTFLoader = GLTFLoader;
</script>