1.0.0 • Published 2 years ago
nuxt-slugify v1.0.0
nuxt-slugify
Easy way to integrate Slugify with Nuxt
Setup
- Add
nuxt-slugify
dependency to your project
npm i -D nuxt-slugify
- Add
nuxt-slugify
to themodules
section ofnuxt.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.
1.0.0
2 years ago