mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
Typo fix, const must be renamed clientCompiler
This commit is contained in:
parent
d782b1c516
commit
c99571e78e
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user