@nuxt/docs-nightly 5.0.0-29742283.eea5e46f → 5.0.0-29742406.29ddd664
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -218,7 +218,7 @@ To improve performance, we need to first know how to measure it, starting with m
|
|
|
218
218
|
|
|
219
219
|
### Nuxi Analyze
|
|
220
220
|
|
|
221
|
-
[This](/docs/4.x/api/commands/analyze) command of `
|
|
221
|
+
[This](/docs/4.x/api/commands/analyze) command of `nuxt` allows you to analyze the production bundle of your Nuxt application. It leverages `vite-bundle-visualizer` (similar to `webpack-bundle-analyzer`) to generate a visual representation of your application's bundle, making it easier to identify which components take up the most space.
|
|
222
222
|
|
|
223
223
|
When you see a large block in the visualization, it often signals an opportunity for optimization—whether by splitting it into smaller parts, implementing lazy loading, or replacing it with a more efficient alternative, especially for third-party libraries.
|
|
224
224
|
|
|
@@ -1031,7 +1031,7 @@ export default defineNuxtConfig({
|
|
|
1031
1031
|
- `routeRules` setting `noScripts`, `cache`, `isr`, `swr`, `redirect`, or `streaming: false` for the route
|
|
1032
1032
|
- `ssr: false` routes (already SPA-rendered)
|
|
1033
1033
|
- Bot/crawler user agents (controlled via `botRegex`)
|
|
1034
|
-
- Prerendered routes (`
|
|
1034
|
+
- Prerendered routes (`nuxt generate`)
|
|
1035
1035
|
- Server-side `navigateTo()` redirects from plugins, middleware, or page setup
|
|
1036
1036
|
- Fatal errors thrown during initial render (before the shell flushes)
|
|
1037
1037
|
::
|
|
@@ -236,7 +236,7 @@ Wrap the following in backticks so they render as inline code:
|
|
|
236
236
|
* npm package names: `@nuxt/kit`, `postcss`
|
|
237
237
|
* Configuration keys, options, and values: `ssr: false`, the `css` option
|
|
238
238
|
* Code identifiers such as functions, composables, components, variables, and types: `useFetch`, `<NuxtLink>`, `defineNuxtConfig`
|
|
239
|
-
* Terminal commands: `npx
|
|
239
|
+
* Terminal commands: `npx nuxt init`
|
|
240
240
|
|
|
241
241
|
Do not use backticks for names of tools, projects, or general concepts (use _Vite_, not `vite`, when referring to the tool).
|
|
242
242
|
|