Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Pathing for Assets in Public Directory #7

Closed
accelxr opened this issue Oct 1, 2023 · 0 comments
Closed

Incorrect Pathing for Assets in Public Directory #7

accelxr opened this issue Oct 1, 2023 · 0 comments

Comments

@accelxr
Copy link

accelxr commented Oct 1, 2023

The current configuration serves files in the public directory at the root path, which leads to incorrect asset pathing when trying to import them from JavaScript. Below are the encountered errors:

files in the public directory are served at the root path.
Instead of /public/style.css, use /style.css.
Assets in public cannot be imported from JavaScript.
Instead of /public/sound/background/cc_bgm_balanced.wav, put the file in the src directory, and use /src/sound/background/cc_bgm_balanced.wav instead.
Assets in public cannot be imported from JavaScript.
Instead of /public/sound/sound-files.json, put the file in the src directory, and use /src/sound/sound-files.json instead.
Assets in public cannot be imported from JavaScript.
Instead of /public/sound/sounds.mp3, put the file in the src directory, and use /src/sound/sounds.mp3 instead.
Assets in public cannot be imported from JavaScript.
Instead of /public/ui/weba.png, put the file in the src directory, and use /src/ui/weba.png instead.
Assets in public cannot be imported from JavaScript.
Instead of /public/ui/traits/shuffle.svg, put the file in the src directory, and use /src/ui/traits/shuffle.svg instead.
Assets in public cannot be imported from JavaScript.
Instead of /public/ui/selector/cancel.png, put the file in the src directory, and use /src/ui/selector/cancel.png instead.
Assets in public cannot be imported from JavaScript.
Instead of /public/ui/selector/tick.svg, put the file in the src directory, and use /src/ui/selector/tick.svg instead.
files in the public directory are served at the root path.
Instead of /public/sound/sounds.mp3, use /sound/sounds.mp3.
files in the public directory are served at the root path.
Instead of /public/ui/weba.png, use /ui/weba.png.

@lalalune lalalune closed this as completed Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants