Merge pull request #411 from PierreRambaud/typo-409

Typo fix, const must be renamed clientCompiler
This commit is contained in:
Sébastien Chopin 2017-03-20 16:19:12 +01:00 committed by GitHub
commit 5ce0491311

View File

@ -386,8 +386,8 @@ function webpackWatchAndUpdate () {
function webpackRunClient () { function webpackRunClient () {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const clientConfig = getWebpackClientConfig.call(this) const clientConfig = getWebpackClientConfig.call(this)
const serverCompiler = webpack(clientConfig) const clientCompiler = webpack(clientConfig)
serverCompiler.run((err, stats) => { clientCompiler.run((err, stats) => {
if (err) return reject(err) if (err) return reject(err)
console.log('[nuxt:build:client]\n', stats.toString(webpackStats)) // eslint-disable-line no-console console.log('[nuxt:build:client]\n', stats.toString(webpackStats)) // eslint-disable-line no-console
if (stats.hasErrors()) return reject('Webpack build exited with errors') if (stats.hasErrors()) return reject('Webpack build exited with errors')