mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +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 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 = {
|
const defaults: SigmaContext = {
|
||||||
timing: true,
|
timing: true,
|
||||||
inlineChunks: true,
|
inlineChunks: true,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import fetch from 'node-fetch'
|
import fetch from 'node-fetch'
|
||||||
import { resolve } from 'upath'
|
import { resolve } from 'upath'
|
||||||
import { build, generate, prepare } from '../build'
|
import { build, generate, prepare } from '../build'
|
||||||
import { getsigmaContext, SigmaContext } from '../context'
|
import { getSigmaContext, SigmaContext } from '../context'
|
||||||
import { createDevServer } from '../server'
|
import { createDevServer } from '../server'
|
||||||
import wpfs from '../utils/wpfs'
|
import wpfs from '../utils/wpfs'
|
||||||
|
|
||||||
@ -19,8 +19,8 @@ export default function (nuxt, moduleContainer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create contexts
|
// Create contexts
|
||||||
const sigmaContext = getsigmaContext(nuxt.options, nuxt.options.sigma || {})
|
const sigmaContext = getSigmaContext(nuxt.options, nuxt.options.sigma || {})
|
||||||
const sigmaDevContext = getsigmaContext(nuxt.options, { preset: 'local' })
|
const sigmaDevContext = getSigmaContext(nuxt.options, { preset: 'local' })
|
||||||
|
|
||||||
// Connect hooks
|
// Connect hooks
|
||||||
nuxt.addHooks(sigmaContext.nuxtHooks)
|
nuxt.addHooks(sigmaContext.nuxtHooks)
|
||||||
|
Loading…
Reference in New Issue
Block a user