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 = []
|
const compilersOptions = []
|
||||||
|
|
||||||
// Client
|
|
||||||
const clientConfig = new ClientWebpackConfig(this).config()
|
|
||||||
compilersOptions.push(clientConfig)
|
|
||||||
|
|
||||||
// Server
|
// Server
|
||||||
let serverConfig = null
|
let serverConfig = null
|
||||||
if (this.options.build.ssr) {
|
if (this.options.build.ssr) {
|
||||||
@ -438,6 +434,10 @@ export default class Builder {
|
|||||||
compilersOptions.push(serverConfig)
|
compilersOptions.push(serverConfig)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Client
|
||||||
|
const clientConfig = new ClientWebpackConfig(this).config()
|
||||||
|
compilersOptions.push(clientConfig)
|
||||||
|
|
||||||
// Alias plugins to their real path
|
// Alias plugins to their real path
|
||||||
this.plugins.forEach(p => {
|
this.plugins.forEach(p => {
|
||||||
const src = this.relativeToBuild(p.src)
|
const src = this.relativeToBuild(p.src)
|
||||||
@ -533,7 +533,7 @@ export default class Builder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (shouldLog) {
|
if (shouldLog) {
|
||||||
this.spinner.error('Compiled ' + name + ' with some errors')
|
this.spinner.fail('Compiled ' + name + ' with some errors')
|
||||||
}
|
}
|
||||||
|
|
||||||
return reject(err)
|
return reject(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user