nuxt-cname-generator
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

NuxtCnameGenerator

A Github Pages CNAME generator for Nuxt applications.

Usage

First, add nuxt-cname-generator dependency to your project.

# Using pnpm
pnpm add -D nuxt-cname-generator

# Using yarn
yarn add --dev nuxt-cname-generator

# Using npm
npm install --save-dev nuxt-cname-generator

Then, add nuxt-cname-generator to the modules section of nuxt.config.ts.

export default defineNuxtConfig({
  modules: [
    'nuxt-cname-generator'
  ]
})

Finally, configure it in your nuxt.config.ts.

export default defineNuxtConfig({
  // Other config options.
  cname: {
    host: 'example.com'
  }
})

That's it !

License

Licensed under the MIT license. See here.

Readme

Keywords

none

Package Sidebar

Install

npm i nuxt-cname-generator

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

4.96 kB

Total Files

9

Last publish

Collaborators

  • skyost