0.1.2 • Published 12 months ago

vite-nuxt-auto-sitemap v0.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

vite-nuxt-auto-sitemap

Nuxt3 automatically generates sitemap file

Usage

Install

npm i vite-nuxt-auto-sitemap -D

Add it to nuxt.config.ts

// nuxt.config.ts
import autoSitemap from "vite-nuxt-auto-sitemap"

export default {
  vite: {
    plugins: process.env.NODE_ENV === 'production' ?
      viteNuxtautoSitemap({
        host: 'https://xxx.com'
      }),
    : '',
  }
};

Configuration

Current available options:

autoSitemap({
  /**
  * Required domain name
  */
  host: '' | []
  /**
  * Page directory relative to process directory
  */
  dirPath: './pages',
  /**
  * The relative to process directory path of sitemap output
  */
  sitemapOutPath: './public/sitemap.xml'
})
0.1.2

12 months ago

0.1.1

12 months ago

0.1.7

12 months ago

0.1.6

12 months ago

0.0.6

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago