mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
chore(presets): rename local to dev
This commit is contained in:
parent
5e6fb802f3
commit
eebdb2870a
@ -15,7 +15,7 @@ export default function nuxt2CompatModule () {
|
|||||||
|
|
||||||
// Create contexts
|
// Create contexts
|
||||||
const nitroContext = getNitroContext(nuxt.options, nuxt.options.nitro || {})
|
const nitroContext = getNitroContext(nuxt.options, nuxt.options.nitro || {})
|
||||||
const nitroDevContext = getNitroContext(nuxt.options, { preset: 'local' })
|
const nitroDevContext = getNitroContext(nuxt.options, { preset: 'dev' })
|
||||||
|
|
||||||
// Connect hooks
|
// Connect hooks
|
||||||
nuxt.addHooks(nitroContext.nuxtHooks)
|
nuxt.addHooks(nitroContext.nuxtHooks)
|
||||||
|
@ -2,15 +2,13 @@ import { extendPreset } from '../utils'
|
|||||||
import { NitroPreset } from '../context'
|
import { NitroPreset } from '../context'
|
||||||
import { node } from './node'
|
import { node } from './node'
|
||||||
|
|
||||||
export const local: NitroPreset = extendPreset(node, {
|
export const dev: NitroPreset = extendPreset(node, {
|
||||||
entry: '{{ _internal.runtimeDir }}/entries/local',
|
entry: '{{ _internal.runtimeDir }}/entries/dev',
|
||||||
output: {
|
output: {
|
||||||
serverDir: '{{ _nuxt.buildDir }}/nitro'
|
serverDir: '{{ _nuxt.buildDir }}/nitro'
|
||||||
},
|
},
|
||||||
minify: false,
|
minify: false,
|
||||||
externals: {
|
externals: { trace: false },
|
||||||
trace: false
|
|
||||||
},
|
|
||||||
inlineChunks: true,
|
inlineChunks: true,
|
||||||
timing: false,
|
timing: false,
|
||||||
sourceMap: true
|
sourceMap: true
|
@ -6,7 +6,7 @@ export * from './firebase'
|
|||||||
export * from './lambda'
|
export * from './lambda'
|
||||||
export * from './netlify'
|
export * from './netlify'
|
||||||
export * from './node'
|
export * from './node'
|
||||||
export * from './local'
|
export * from './dev'
|
||||||
export * from './server'
|
export * from './server'
|
||||||
export * from './cli'
|
export * from './cli'
|
||||||
export * from './vercel'
|
export * from './vercel'
|
||||||
|
Loading…
Reference in New Issue
Block a user