mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-06 13:03:11 +00:00
Add extend option in nuxt build config
This commit is contained in:
parent
a4c28ac52b
commit
a9cb000b76
@ -72,5 +72,12 @@ module.exports = function () {
|
||||
})
|
||||
)
|
||||
}
|
||||
// Extend config
|
||||
if (typeof this.options.build.extend === 'function') {
|
||||
this.options.build.extend(config, {
|
||||
dev: this.dev,
|
||||
isClient: true
|
||||
})
|
||||
}
|
||||
return config
|
||||
}
|
||||
|
@ -51,6 +51,12 @@ module.exports = function () {
|
||||
}
|
||||
config.externals = uniq(config.externals)
|
||||
|
||||
// Return config
|
||||
// Extend config
|
||||
if (typeof this.options.build.extend === 'function') {
|
||||
this.options.build.extend(config, {
|
||||
dev: this.dev,
|
||||
isServer: true
|
||||
})
|
||||
}
|
||||
return config
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user