@nuxtjs/amp

AMP Module for Nuxt

Usage no npm install needed!

<script type="module">
  import nuxtjsAmp from 'https://cdn.skypack.dev/@nuxtjs/amp';
</script>

README

⚡ @nuxtjs/amp

npm version npm downloads Circle CI Codecov Dependencies Standard JS

AMP (Accelerated Mobile Pages) Module for Nuxt

DEMO: https://codesandbox.io/s/github/nuxt-community/amp-module/

📖 Release Notes

Docs

Setup

  1. Add the @nuxtjs/amp dependency with yarn or npm to your project
  2. Add @nuxtjs/amp to the modules section of nuxt.config.js
  3. Configure it:
{
  modules: [
    // Simple usage
    '@nuxtjs/amp',

    // With options
    ['@nuxtjs/amp', { /* module options */ }]
  ]
}

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using npm run dev

License

MIT License

Copyright (c) Ahad Birang farnabaz@gmail.com