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

Support for converting <nuxt-img> and <nuxt-picture> into <amp-img> on AMP pages #263

Open
3 tasks
draganovik opened this issue May 28, 2021 · 0 comments
Open
3 tasks

Comments

@draganovik
Copy link

draganovik commented May 28, 2021

Use case

  • Using Nuxt Image in project together with amp-module.

Expected behavior

  • If <nuxt-image> is a component on configurated AMP page, then <nuxt-image> should be deployed as <amp-img> instead of <img> tag.

Posible solution

  • Tap into Nuxt Image to override <nuxt-image> component rendering
  • Convert <img> to <amp-img> on AMP pages by default
  • Automatically convert all base HTML tags to AMP equivalents (This might fundamentally change amp-module)
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

1 participant