Skip to content

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

Description

@draganovik

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions