misc: update builder

This commit is contained in:
Pooya Parsa 2018-03-23 20:57:48 +04:30
parent c82a8907e5
commit f8aa4cd7d7
1 changed files with 5 additions and 5 deletions

View File

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