From c99571e78eecc5a87739e4fa45e20fec28ec0611 Mon Sep 17 00:00:00 2001 From: Pierre RAMBAUD Date: Mon, 20 Mar 2017 12:11:20 +0100 Subject: [PATCH] Typo fix, const must be renamed clientCompiler --- lib/build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/build.js b/lib/build.js index e6d72082a2..27f7c3e089 100644 --- a/lib/build.js +++ b/lib/build.js @@ -386,8 +386,8 @@ function webpackWatchAndUpdate () { function webpackRunClient () { return new Promise((resolve, reject) => { const clientConfig = getWebpackClientConfig.call(this) - const serverCompiler = webpack(clientConfig) - serverCompiler.run((err, stats) => { + const clientCompiler = webpack(clientConfig) + clientCompiler.run((err, stats) => { if (err) return reject(err) console.log('[nuxt:build:client]\n', stats.toString(webpackStats)) // eslint-disable-line no-console if (stats.hasErrors()) return reject('Webpack build exited with errors')