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

The plugin doesn't seem to work with static generation #623

Closed
aherok opened this issue Oct 3, 2022 · 2 comments
Closed

The plugin doesn't seem to work with static generation #623

aherok opened this issue Oct 3, 2022 · 2 comments

Comments

@aherok
Copy link

aherok commented Oct 3, 2022

I'm trying to get this working for quite a while and still struggling to get any progress.

When running in dev mode it all works fine, the included image gets rendered properly:

<img src="/_ipx/w_400/astro.jpg" sizes="(max-width: 640px) 100vw, (max-width: 768px) 50vw, 400px" 
srcset="/_ipx/w_640/astro.jpg 640w, /_ipx/w_384/astro.jpg 384w, /_ipx/w_400/astro.jpg 400w">

However, after running yarn generate command, the <img> tag still looks exactly the same but the image itself doesn't seem to be prepared and copied to the right place - the _ipx dir is not created at all.

Is it only me who doesn't understand how that should work? Or is it the case where you should use the plugin only for dynamic pages?

Repository to recreate the issue: https://github.com/aherok/nuxt-image-text
Please note that this is a clean Nuxt RC11 install + added nuxt-image plugin with a single image, nothing more.

@jimhlad
Copy link
Contributor

jimhlad commented Oct 4, 2022

I believe this may be related to #611 with support being currently under development: #614

@aherok
Copy link
Author

aherok commented Oct 5, 2022

@jimhlad Thanks! Indeed, I've checked similar issues however didn't get that static not ready yet message...

@aherok aherok closed this as completed Oct 5, 2022
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