Nuxt/start
2017-08-17 22:10:54 +04:30
..
.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 Fix nuxt-start in package.json 2017-08-17 22:10:54 +04:30
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