mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
12 lines
327 B
JavaScript
12 lines
327 B
JavaScript
import { resolve } from 'path'
|
|
|
|
import { requireModule } from '../../lib/common/module'
|
|
|
|
export function loadConfig(fixture, overrides) {
|
|
const rootDir = resolve(__dirname, '../fixtures/' + fixture)
|
|
|
|
const config = requireModule(resolve(rootDir, 'nuxt.config.js'))
|
|
|
|
return Object.assign({ rootDir }, config, overrides)
|
|
}
|