Home
Softono

Nuxt Trailingslash Module

Open source MIT JavaScript
23
Stars
7
Forks
6
Issues
2
Watchers
3 years
Last Commit

 About Nuxt Trailingslash Module

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

Platforms

Web Self-hosted

Languages

JavaScript

Links

Need Help Installing Nuxt Trailingslash Module?

We provide expert installation service for this software. Our team will install, configure, and secure Nuxt Trailingslash Module on your server. plans start at just $30.

Nuxt Trailingslash Module

View on GitHub

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