mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
misc: update builder
This commit is contained in:
parent
c82a8907e5
commit
f8aa4cd7d7
@ -427,10 +427,6 @@ export default class Builder {
|
||||
|
||||
const compilersOptions = []
|
||||
|
||||
// Client
|
||||
const clientConfig = new ClientWebpackConfig(this).config()
|
||||
compilersOptions.push(clientConfig)
|
||||
|
||||
// Server
|
||||
let serverConfig = null
|
||||
if (this.options.build.ssr) {
|
||||
@ -438,6 +434,10 @@ export default class Builder {
|
||||
compilersOptions.push(serverConfig)
|
||||
}
|
||||
|
||||
// Client
|
||||
const clientConfig = new ClientWebpackConfig(this).config()
|
||||
compilersOptions.push(clientConfig)
|
||||
|
||||
// Alias plugins to their real path
|
||||
this.plugins.forEach(p => {
|
||||
const src = this.relativeToBuild(p.src)
|
||||
@ -533,7 +533,7 @@ export default class Builder {
|
||||
}
|
||||
|
||||
if (shouldLog) {
|
||||
this.spinner.error('Compiled ' + name + ' with some errors')
|
||||
this.spinner.fail('Compiled ' + name + ' with some errors')
|
||||
}
|
||||
|
||||
return reject(err)
|
||||
|
Loading…
Reference in New Issue
Block a user