From f50d5673d9814c68e6da0f0dd72ec64c4d05e4cf Mon Sep 17 00:00:00 2001 From: James Lee Date: Mon, 5 Jun 2017 14:41:56 -0700 Subject: [PATCH] removed build.then() alpha3 no longer returns a promise on the nuxt constructor. --- README.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 40ed8ee8bc..7c655d5ebc 100644 --- a/README.md +++ b/README.md @@ -170,13 +170,8 @@ const Nuxt = require('nuxt') // Launch nuxt build with given options let config = require('./nuxt.config.js') let nuxt = new Nuxt(config) -nuxt.build() -.then(() => { - // You can use nuxt.render(req, res) or nuxt.renderRoute(route, context) -}) -.catch((e) => { - // An error happened during the build -}) + +// You can use nuxt.render(req, res) or nuxt.renderRoute(route, context) ``` Learn more: https://nuxtjs.org/api/nuxt