Hi I’m trying to use BabylonJS with VueJS.
And I use Firebase Hosting as Server.
Before I deploy files in “dist/”, I build the project using the comand
npm run build
In package.json, this command is defined as
vue-cli-service build
And here comes the problem,
I want to use SceneLoader inside a component, but I don’t know the path of my assets after build.
My .glb model was in “(project root)/src/assets/scences/mymodel.gld”, but simply refering to this path after build like this
BABYLON.SceneLoader.ImportMesh("", "../assets/scenes/", "nice_rigged_man.glb", ...
doesn’t work.
Where should I put my models before build?
Where should I refer for my models after build?