GithubHelp home page GithubHelp logo

Comments (6)

yamiteru avatar yamiteru commented on July 4, 2024 1

Yeah that makes sense why it was loading the last imported image.

And regarding your second issue with images not been generated in build mode, it seems like Vite is not picking up the import at all and that's why the images weren't included in the build. I don't know how or why it is different in build mode, but Vite-imagetools has nothing to do with that. It never gets told about any images in the first place.

I see, so I'm gonna create an issue over in the Vite repo. Thanks for debugging man!

from imagetools.

JonasKruckenberg avatar JonasKruckenberg commented on July 4, 2024

That's weird, I kinda expected this a bit to be honest since I changed the way images get generated in devmode completely (streaming the image to the browser instead of copying around a ton of files).

I didn't change the way images get generated in build mode at all so that's kinda weird.

I'll have a look a your repo and try to troubleshoot it!
Regarding examples,I think I'd be cool if you open up a PR for an example using solid when the time is right (i.e. the plugin actually works πŸ˜…)

from imagetools.

JonasKruckenberg avatar JonasKruckenberg commented on July 4, 2024

I'll probably won't be able to get back to this before tomorrow or friday, I'm kinda busy right now, but don't worry we'll get that fixed πŸ‘πŸ»

from imagetools.

yamiteru avatar yamiteru commented on July 4, 2024

That's weird, I kinda expected this a bit to be honest since I changed the way images get generated in devmode completely (streaming the image to the browser instead of copying around a ton of files).

I didn't change the way images get generated in build mode at all so that's kinda weird.

I'll have a look a your repo and try to troubleshoot it!
Regarding examples,I think I'd be cool if you open up a PR for an example using solid when the time is right (i.e. the plugin actually works πŸ˜…)

Yes I'll definitely create a PR once the lib works πŸ˜‚

I'll probably won't be able to get back to this before tomorrow or friday, I'm kinda busy right now, but don't worry we'll get that fixed πŸ‘πŸ»

No problem. I like your spirit!

from imagetools.

JonasKruckenberg avatar JonasKruckenberg commented on July 4, 2024

Alright, I've been experimenting a bit:
From what I can tell It doesn't seem like this is not a problem with imagetools directly but rather your specific setup since for me it worked perfectly.
To make sure though I changed how image IDs get generated. (It's not pushed yet I'll check out your repo first)

from imagetools.

JonasKruckenberg avatar JonasKruckenberg commented on July 4, 2024

I'm so stupid duh... You know what the issue was? πŸ˜† Images IDs were basically the url params hashed, since the same configuration always produces the same image, but it was only the url params and so the image path was not taken into account. How stupid...

Anyway, the fixed version should be available from npm soon!

Edit:

And regarding your second issue with images not been generated in build mode, it seems like Vite is not picking up the import at all and that's why the images weren't included in the build. I don't know how or why it is different in build mode, but Vite-imagetools has nothing to do with that. It never gets told about any images in the first place.

from imagetools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.