We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8fd9c8 commit 848d451Copy full SHA for 848d451
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "angular-three-gltf",
3
- "version": "1.0.15",
+ "version": "1.0.16",
4
"description": "GLTF to Angular Three converter",
5
"scripts": {
6
"cleanup": "rimraf node_modules"
src/index.js
@@ -26,8 +26,8 @@ function toArrayBuffer(buf) {
26
export default function (file, output, options) {
27
function getFilePath(file) {
28
// remove public from path. assuming that public is the assets root
29
- if (file.includes("/public")) {
30
- file = file.replace("/public", "");
+ if (file.includes("public/")) {
+ file = file.replace("public/", "");
31
}
32
return `${options.root ?? "/"}${options.root ? path.basename(file) : path.normalize(file)}`;
33
0 commit comments