mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-16 19:04:48 +00:00
17 lines
497 B
TypeScript
17 lines
497 B
TypeScript
|
import consola from 'consola'
|
||
|
import { extendPreset, hl, prettyPath } from '../utils'
|
||
|
import { SigmaPreset, SigmaContext } from '../context'
|
||
|
import { node } from './node'
|
||
|
|
||
|
export const server: SigmaPreset = extendPreset(node, {
|
||
|
entry: '{{ _internal.runtimeDir }}/entries/server',
|
||
|
externals: false,
|
||
|
inlineChunks: false,
|
||
|
timing: true,
|
||
|
hooks: {
|
||
|
'sigma:compiled' ({ output }: SigmaContext) {
|
||
|
consola.success('Ready to run', hl('node ' + prettyPath(output.serverDir)))
|
||
|
}
|
||
|
}
|
||
|
})
|