Skip to content

Commit 848d451

Browse files
committed
fix: again
1 parent a8fd9c8 commit 848d451

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-three-gltf",
3-
"version": "1.0.15",
3+
"version": "1.0.16",
44
"description": "GLTF to Angular Three converter",
55
"scripts": {
66
"cleanup": "rimraf node_modules"

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ function toArrayBuffer(buf) {
2626
export default function (file, output, options) {
2727
function getFilePath(file) {
2828
// remove public from path. assuming that public is the assets root
29-
if (file.includes("/public")) {
30-
file = file.replace("/public", "");
29+
if (file.includes("public/")) {
30+
file = file.replace("public/", "");
3131
}
3232
return `${options.root ?? "/"}${options.root ? path.basename(file) : path.normalize(file)}`;
3333
}

0 commit comments

Comments
 (0)