swup-meta-tags-plugin

1.0.2 • Public • Published

Swup Meta Tags Plugin

This is a plugin for swup - complete, flexible, extensible and easy to use page transition library for your web. On a page change, this plugin remove existing meta tags and some link tags and adds those from the new page.

Instalation

This plugin can be installed with npm

npm install swup-meta-tags-plugin

and included with import

import SwupMetaTagsPlugin from 'swup-meta-tags-plugin';

or included from the dist folder

<script src="./dist/SwupMetaTagsPlugin.js"></script>

Usage

To run this plugin, include an instance in the swup options.

const swup = new Swup({
  plugins: [new SwupMetaTagsPlugin()]
});

/swup-meta-tags-plugin/

    Package Sidebar

    Install

    npm i swup-meta-tags-plugin

    Weekly Downloads

    15

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    20.7 kB

    Total Files

    6

    Last publish

    Collaborators

    • accudio