Nuxt/packages/nuxt-start
renovate[bot] bc9071663f fix(deps): update all non-major dependencies (#3991)
* fix(deps): update all non-major dependencies

* Update package.json

* fix(deps): lock file update

* fix test due to changed css attribute order
2018-09-30 18:11:52 +02:00
..
src feat: move nuxt-legacy and nuxt-start into packages (#3824) 2018-08-31 22:51:41 +04:30
.gitignore fix: build failure 2018-09-17 12:14:17 +01:00
package.js chore(package): automatically sort dependencies 2018-09-21 01:04:08 +04:30
package.json fix(deps): update all non-major dependencies (#3991) 2018-09-30 18:11:52 +02:00
README.md feat: move nuxt-legacy and nuxt-start into packages (#3824) 2018-08-31 22:51:41 +04:30
rollup.config.js feat: move nuxt-legacy and nuxt-start into packages (#3824) 2018-08-31 22:51:41 +04:30

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