-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Vue js with parcel bundler cannot load dynamic images ? #1919
Comments
Not sure what vue turns this into, parcel only runs over valid html requires, it would probably be expected to become a js dependency but as it's not working that's probably not happening, which is pretty strange. Someone will have to dig into what this code gets transpiled to by Vue and how we can handle this without editing the html parser |
Thanks I found in other issue how should be resolve for now #1668 and It is your way It working correctly but eg. when we have a case like upload files to folder I cannot refresh / update list new files after completed upload so the list of files are old eg.
without this uploaded file :( |
@mkucaj1986 as far as I understand I think you might need a back-end server/service that gives you a list of all the images, this way you have full control over them. Not sure if I completely understand though, if you don't need a list than you could use something like a cdn or just copy the images over to dist after build and before watch, that way you could use their normal paths... |
@mkucaj1986 |
❔ Question
Vue js with parcel bundler cannot load dynamic images when trying to load images with v-for loop
give us 404 and when i try using relative path its working properly and changing path to hashed
Not working: 404
Works:
src="../../../assets/uploads/carousel-1534888549715.jpg"
🔦 Context
Would like to load dynamic images
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: