mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 21:58:19 +00:00
fix(nitro): rename cold start -> nitro start (#3528)
This commit is contained in:
parent
78761c236b
commit
398b311ad6
@ -69,7 +69,7 @@ export default {
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ node .output/server/index.mjs
|
$ node .output/server/index.mjs
|
||||||
> Cold Start (3ms)
|
> Nitro Start (3ms)
|
||||||
Listening on http://localhost:3000
|
Listening on http://localhost:3000
|
||||||
> Load chunks/nitro/static (0ms)
|
> Load chunks/nitro/static (0ms)
|
||||||
> Load chunks/app/render (1ms)
|
> Load chunks/app/render (1ms)
|
||||||
|
@ -33,7 +33,7 @@ export function timing (_opts: Options = {}): Plugin {
|
|||||||
let name = chunk.fileName || ''
|
let name = chunk.fileName || ''
|
||||||
name = name.replace(extname(name), '')
|
name = name.replace(extname(name), '')
|
||||||
|
|
||||||
const logName = name === 'index' ? 'Cold Start' : ('Load ' + name)
|
const logName = name === 'index' ? 'Nitro Start' : ('Load ' + name)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
code: (chunk.isEntry ? HELPERIMPORT : '') + `${TIMING}.logStart('${logName}');` + code + `;${TIMING}.logEnd('${logName}');`,
|
code: (chunk.isEntry ? HELPERIMPORT : '') + `${TIMING}.logStart('${logName}');` + code + `;${TIMING}.logEnd('${logName}');`,
|
||||||
|
Loading…
Reference in New Issue
Block a user