mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
update getSigmaContext name (#73)
This commit is contained in:
parent
f4e15196b2
commit
0ebab89014
@ -64,7 +64,7 @@ export interface SigmaInput extends DeepPartial<SigmaContext> {}
|
||||
|
||||
export type SigmaPreset = SigmaInput | ((input: SigmaInput) => SigmaInput)
|
||||
|
||||
export function getsigmaContext (nuxtOptions: NuxtOptions, input: SigmaInput): SigmaContext {
|
||||
export function getSigmaContext (nuxtOptions: NuxtOptions, input: SigmaInput): SigmaContext {
|
||||
const defaults: SigmaContext = {
|
||||
timing: true,
|
||||
inlineChunks: true,
|
||||
|
@ -1,7 +1,7 @@
|
||||
import fetch from 'node-fetch'
|
||||
import { resolve } from 'upath'
|
||||
import { build, generate, prepare } from '../build'
|
||||
import { getsigmaContext, SigmaContext } from '../context'
|
||||
import { getSigmaContext, SigmaContext } from '../context'
|
||||
import { createDevServer } from '../server'
|
||||
import wpfs from '../utils/wpfs'
|
||||
|
||||
@ -19,8 +19,8 @@ export default function (nuxt, moduleContainer) {
|
||||
}
|
||||
|
||||
// Create contexts
|
||||
const sigmaContext = getsigmaContext(nuxt.options, nuxt.options.sigma || {})
|
||||
const sigmaDevContext = getsigmaContext(nuxt.options, { preset: 'local' })
|
||||
const sigmaContext = getSigmaContext(nuxt.options, nuxt.options.sigma || {})
|
||||
const sigmaDevContext = getSigmaContext(nuxt.options, { preset: 'local' })
|
||||
|
||||
// Connect hooks
|
||||
nuxt.addHooks(sigmaContext.nuxtHooks)
|
||||
|
Loading…
Reference in New Issue
Block a user