1.0.2 • Published 4 years ago

swup-meta-tags-plugin v1.0.2

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

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()]
});