Nuxt/start
2017-10-20 10:50:54 +02:00
..
.gitignore chore(start): automate start package generate 2017-07-13 14:40:12 +04:30
index.js eslint 2017-06-27 22:30:03 +04:30
package.json Merge branch 'dev' into refacto-app 2017-10-20 10:50:54 +02:00
README.md Nuxt start should be ready now 2017-07-30 18:24:53 +02:00

nuxt-start

Start Nuxt.js Application in production mode.

Installation

npm install --save nuxt-start

Add/Update your "start" script into your package.json:

{
	"scripts": {
		"start": "nuxt-start"
	}
}

Usage

nuxt-start <dir> -p <port number> -H <hostname> -c <config file>

Programmatic Usage

const { Nuxt } = require('nuxt-start')

// Require nuxt config
const config = require('./nuxt.config.js')

// Create a new nuxt instance
const nuxt = new Nuxt(config)

// Start nuxt.js server
nuxt.listen(3000) // nuxt.listen(port, host)

// Or use `nuxt.render` as an express middleware