mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 00:52:01 +00:00
12 lines
410 B
JavaScript
12 lines
410 B
JavaScript
|
import { core as importCore, builder as importBuilder } from '../imports'
|
||
|
|
||
|
export async function getWebpackConfig (name = 'client', loadOptions = {}) {
|
||
|
const { loadNuxt } = await importCore()
|
||
|
const { getBuilder } = await importBuilder()
|
||
|
|
||
|
const nuxt = await loadNuxt(loadOptions)
|
||
|
const builder = await getBuilder(nuxt)
|
||
|
const { bundleBuilder } = builder
|
||
|
return bundleBuilder.getWebpackConfig(name)
|
||
|
}
|