Skip to content

tauri://localhost clarification #12667

Answered by FabianLars
stackedCG asked this question in Q&A
Discussion options

You must be logged in to vote

resources are generally not available via the tauri:// schemel.
tauri:// servers only files that are part of your frontendDist so it may work here by accident if ../src is in there too but it's kindaaa undefined behavior (i'd expect the paths not to match)

The asset:// protocol (via convertFileSrc()) can handle resources (but not files in your frontendDist)

If there is a way with just using js that would be awesome, thanks in advance for the help!

Not exactly sure what you mean tbh, but considering that those files are in your ../src path you should be able to simply import them in your js files.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@stackedCG
Comment options

@stackedCG
Comment options

@stackedCG
Comment options

Answer selected by stackedCG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants