[Vuejs]-Use .GLB / Blender files in Gridsome project (Vue.js)

0👍

Use the /static directory of Gridsome and rebuild your project All files in this directory will be copied directly to your dist during build.

After you can change your import function to :

this.loader.load('./nameOfYourModel.glb', function(gltf) {
  // Your code here 
});

Leave a comment