Compressed Texture Workflow (glTF|Basis)

The link to enable basis textures happens via the loading Manager. I guess this part of code should be doing the job, but its just an extract from my project for the sake of simplicity.

import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
import { BasisTextureLoader } from "three/examples/jsm/loaders/BasisTextureLoader.js";
[...]

const basisLoader = new BasisTextureLoader(loadingManager);
basisLoader.setTranscoderPath('libs/basis/');
basisLoader.detectSupport(renderer);
loadingManager.addHandler(/\.basis$/i, basisLoader);

const gltfLoader = new GLTFLoader(loadingManager);

Then proceed to load your model and add it to the scene.