nuxt-trailingslash-module
v1.2.0
Published
NuxtJS module to remove trailing slashes from URLs
Downloads
1,496
Readme
nuxt-trailingslash-module
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',
],
},
}