Typo fix, const must be renamed clientCompiler

This commit is contained in:
Pierre RAMBAUD 2017-03-20 12:11:20 +01:00
parent d782b1c516
commit c99571e78e

View File

@ -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')