mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
pass 'this nuxt' context in extend webpack config
// nuxt.config build: { extend (config, {dev, isClient}) { // get this context here config.resolve.alias['~services'] = join(this.srcDir, 'services'); }, }
This commit is contained in:
parent
d576dad069
commit
e7bcdc736e
@ -105,7 +105,7 @@ export default function () {
|
||||
}
|
||||
// Extend config
|
||||
if (typeof this.options.build.extend === 'function') {
|
||||
this.options.build.extend(config, {
|
||||
this.options.build.extend.call(this, config, {
|
||||
dev: this.dev,
|
||||
isClient: true
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user