Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 

nuxt-trailingslash-module

npm (scoped with tag) npm js-standard-style

A NuxtJS module that makes a 301 redirection to a non trailing slash URL

Table of Contents

Requirements

  • npm or yarn
  • NuxtJS
  • NodeJS

Install

$ npm install --save nuxt-trailingslash-module
// or
$ yarn add nuxt-trailingslash-module

Getting Started

Add nuxt-trailingslash-module to modules section of nuxt.config.js.

{
  modules: [
    // Simple usage
    'nuxt-trailingslash-module',

    // With options
    ['nuxt-trailingslash-module', {
      /* module options */
      methods: [
        'GET',
        'HEAD',
      ],
    }],
 ]
}

or even

{
  modules: [
    'nuxt-trailingslash-module',
  ],
  trailingslash: {
    methods: [
      'GET',
      'HEAD',
    ],
  },
}

License

MIT License

About

A NuxtJS module that makes a 301 redirection to a non trailing slash URL

Topics

Resources

License

Packages

No packages published