1.0.0 • Published 2 years ago

nuxt-slugify v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

nuxt-slugify

Easy way to integrate Slugify with Nuxt

Setup

  1. Add nuxt-slugify dependency to your project
npm i -D nuxt-slugify
  1. Add nuxt-slugify to the modules section of nuxt.config.ts.

:warning: If you're using Nuxt 2 use buildModules instead.

Options

export default defineNuxtConfig({
    modules: ['nuxt-slugify'],
    slugify: {
        defaults: {
            // global settings
        },
        extend: {
            // extend support
        },
    }
})

More information in the Slugify repository

Development

  • Run npm run dev:prepare to generate type stubs.
  • Use npm run dev to start playground in development mode.