Skip to content

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

@draganovik

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions