Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

nuxt-cname-module

1.1.1 • Public • Published

nuxt-cname-module

Nuxt Module that generate CNAME file in nuxt generate mode - VueJS

Note: CNAME is only enabled in generate mode.

Build Status npm npm (scoped with tag)

Getting started

Install

Install it via NPM:

npm i nuxt-cname-module

or via yarn:

yarn add nuxt-cname-module

Add to nuxt

Add it to your nuxt.config.js file.

  /** ... **/
  modules: [
    /* ... */
   ['nuxt-cname-module', { baseUrl: 'myFunnyUrl.com' }],
  ]
  /** ... **/

Options

baseUrl

  • [Required] Should be a string

generateCNAME

  • [Optional] If set to false, cname is never generated (default to true)

Environment variable

You can overwrite all you setting via environment variable like this:

baseUrl="anotherFunnyUrl.com" generateCNAME=true npm run generate

nuxt env variable

You can also use env variable in nuxt.config.js:

/** ... **/
modules: [
  /* ... */
 ['nuxt-cname-module'],
],
env: {
  baseUrl: 'myFunnyUrl.com'
}
/** ... **/

install

npm i nuxt-cname-module

Downloadsweekly downloads

0

version

1.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability