7.0.2 • Published 3 years ago

vue-router-tiny-sitemap v7.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Vue-Router-Tiny-Sitemap

A hassle-free way to generate a sitemap.xml for your Vue Single Page Application.

Installation

npm i vue-router-tiny-sitemap

Prerequisites:

In order to use this package, you will need to have 'xmlbuilder2' as well as 'file-saver' installed.

Example usage

Vue router tiny sitemap takes your routes and the base url of your website, constructs a sitemap.xml file and automatically starts a download for it. This process takes place in your browser. For esample, you would have to start your server with "npm run serve", then visit the localhost URL. This will then automatically commence the sitemap.xml download, and output a success message in the console.

// src/router.js
const routes = [
    //your Vue-router routes array
]

var generateSitemap = require("vue-router-tiny-sitemap")
generateSitemap(routes, "baseURL.com")
7.0.2

3 years ago

7.0.1

3 years ago

6.0.0

3 years ago

5.0.0

3 years ago

4.0.0

3 years ago

3.0.0

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago