@nuxt/schema-nightly 4.2.1-29360927.606ef13e → 4.2.1-29360990.b3040970
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.
- package/dist/builder-env.d.mts +1 -1
- package/dist/builder-env.d.ts +1 -1
- package/dist/index.d.mts +30 -30
- package/dist/index.d.ts +30 -30
- package/package.json +1 -1
package/dist/builder-env.d.mts
CHANGED
|
@@ -79,7 +79,7 @@ interface ImportGlobEagerFunction {
|
|
|
79
79
|
<M>(glob: string | string[], options?: Omit<ImportGlobOptions<boolean, string>, 'eager'>): Record<string, M>;
|
|
80
80
|
}
|
|
81
81
|
interface ViteImportMeta {
|
|
82
|
-
/** Vite client HMR API - see https://vite.dev/guide/api-hmr
|
|
82
|
+
/** Vite client HMR API - see https://vite.dev/guide/api-hmr */
|
|
83
83
|
readonly hot?: ViteHot;
|
|
84
84
|
/** vite glob import utility - https://vite.dev/guide/features.html#glob-import */
|
|
85
85
|
glob: ImportGlobFunction;
|
package/dist/builder-env.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ interface ImportGlobEagerFunction {
|
|
|
79
79
|
<M>(glob: string | string[], options?: Omit<ImportGlobOptions<boolean, string>, 'eager'>): Record<string, M>;
|
|
80
80
|
}
|
|
81
81
|
interface ViteImportMeta {
|
|
82
|
-
/** Vite client HMR API - see https://vite.dev/guide/api-hmr
|
|
82
|
+
/** Vite client HMR API - see https://vite.dev/guide/api-hmr */
|
|
83
83
|
readonly hot?: ViteHot;
|
|
84
84
|
/** vite glob import utility - https://vite.dev/guide/features.html#glob-import */
|
|
85
85
|
glob: ImportGlobFunction;
|
package/dist/index.d.mts
CHANGED
|
@@ -920,7 +920,7 @@ interface ImportsOptions extends UnimportOptions {
|
|
|
920
920
|
autoImport?: boolean;
|
|
921
921
|
/**
|
|
922
922
|
* Directories to scan for auto imports.
|
|
923
|
-
* @see https://nuxt.com/docs/4.x/guide/directory-structure/composables#how-files-are-scanned
|
|
923
|
+
* @see https://nuxt.com/docs/4.x/guide/directory-structure/app/composables#how-files-are-scanned
|
|
924
924
|
*/
|
|
925
925
|
dirs?: string[];
|
|
926
926
|
/**
|
|
@@ -948,13 +948,13 @@ interface ConfigSchema {
|
|
|
948
948
|
*
|
|
949
949
|
* Any components in the directories configured here can be used throughout your pages, layouts (and other components) without needing to explicitly import them.
|
|
950
950
|
*
|
|
951
|
-
* @see [`components/` directory documentation](https://nuxt.com/docs/4.x/guide/directory-structure/components)
|
|
951
|
+
* @see [`components/` directory documentation](https://nuxt.com/docs/4.x/guide/directory-structure/app/components)
|
|
952
952
|
*/
|
|
953
953
|
components: boolean | ComponentsOptions | ComponentsOptions['dirs'];
|
|
954
954
|
/**
|
|
955
955
|
* Configure how Nuxt auto-imports composables into your application.
|
|
956
956
|
*
|
|
957
|
-
* @see [Nuxt documentation](https://nuxt.com/docs/4.x/guide/directory-structure/composables)
|
|
957
|
+
* @see [Nuxt documentation](https://nuxt.com/docs/4.x/guide/directory-structure/app/composables)
|
|
958
958
|
*/
|
|
959
959
|
imports: ImportsOptions;
|
|
960
960
|
/**
|
|
@@ -998,7 +998,7 @@ interface ConfigSchema {
|
|
|
998
998
|
/**
|
|
999
999
|
* Options for the Vue compiler that will be passed at build time.
|
|
1000
1000
|
*
|
|
1001
|
-
* @see [Vue documentation](https://vuejs.org/api/application
|
|
1001
|
+
* @see [Vue documentation](https://vuejs.org/api/application#app-config-compileroptions)
|
|
1002
1002
|
*/
|
|
1003
1003
|
compilerOptions: CompilerOptions;
|
|
1004
1004
|
/**
|
|
@@ -1010,9 +1010,9 @@ interface ConfigSchema {
|
|
|
1010
1010
|
*/
|
|
1011
1011
|
propsDestructure: boolean;
|
|
1012
1012
|
/**
|
|
1013
|
-
* It is possible to pass configure the Vue app globally. Only serializable options may be set in your `nuxt.config`. All other options should be set at runtime in a Nuxt plugin
|
|
1013
|
+
* It is possible to pass configure the Vue app globally. Only serializable options may be set in your `nuxt.config`. All other options should be set at runtime in a Nuxt plugin.
|
|
1014
1014
|
*
|
|
1015
|
-
* @see [Vue app config documentation](https://vuejs.org/api/application
|
|
1015
|
+
* @see [Vue app config documentation](https://vuejs.org/api/application#app-config)
|
|
1016
1016
|
*/
|
|
1017
1017
|
config: Serializable<AppConfig$1>;
|
|
1018
1018
|
};
|
|
@@ -1107,7 +1107,7 @@ interface ConfigSchema {
|
|
|
1107
1107
|
*
|
|
1108
1108
|
* This can be overridden with `definePageMeta` on an individual page. Only JSON-serializable values are allowed.
|
|
1109
1109
|
*
|
|
1110
|
-
* @see [Vue Transition docs](https://vuejs.org/api/built-in-components
|
|
1110
|
+
* @see [Vue Transition docs](https://vuejs.org/api/built-in-components#transition)
|
|
1111
1111
|
*/
|
|
1112
1112
|
layoutTransition: NuxtAppConfig['layoutTransition'];
|
|
1113
1113
|
/**
|
|
@@ -1115,7 +1115,7 @@ interface ConfigSchema {
|
|
|
1115
1115
|
*
|
|
1116
1116
|
* This can be overridden with `definePageMeta` on an individual page. Only JSON-serializable values are allowed.
|
|
1117
1117
|
*
|
|
1118
|
-
* @see [Vue Transition docs](https://vuejs.org/api/built-in-components
|
|
1118
|
+
* @see [Vue Transition docs](https://vuejs.org/api/built-in-components#transition)
|
|
1119
1119
|
*/
|
|
1120
1120
|
pageTransition: NuxtAppConfig['pageTransition'];
|
|
1121
1121
|
/**
|
|
@@ -1132,7 +1132,7 @@ interface ConfigSchema {
|
|
|
1132
1132
|
*
|
|
1133
1133
|
* This can be overridden with `definePageMeta` on an individual page. Only JSON-serializable values are allowed.
|
|
1134
1134
|
*
|
|
1135
|
-
* @see [Vue KeepAlive](https://vuejs.org/api/built-in-components
|
|
1135
|
+
* @see [Vue KeepAlive](https://vuejs.org/api/built-in-components#keepalive)
|
|
1136
1136
|
*/
|
|
1137
1137
|
keepalive: NuxtAppConfig['keepalive'];
|
|
1138
1138
|
/**
|
|
@@ -1234,7 +1234,7 @@ interface ConfigSchema {
|
|
|
1234
1234
|
* and these plugins do not need to be listed in `nuxt.config` unless you
|
|
1235
1235
|
* need to customize their order. All plugins are deduplicated by their src path.
|
|
1236
1236
|
*
|
|
1237
|
-
* @see [`plugins/` directory documentation](https://nuxt.com/docs/4.x/guide/directory-structure/plugins)
|
|
1237
|
+
* @see [`plugins/` directory documentation](https://nuxt.com/docs/4.x/guide/directory-structure/app/plugins)
|
|
1238
1238
|
*
|
|
1239
1239
|
* @example
|
|
1240
1240
|
* ```js
|
|
@@ -1361,7 +1361,7 @@ interface ConfigSchema {
|
|
|
1361
1361
|
/**
|
|
1362
1362
|
* Nuxt allows visualizing your bundles and how to optimize them.
|
|
1363
1363
|
*
|
|
1364
|
-
* Set to `true` to enable bundle analysis, or pass an object with options: [for webpack](https://github.com/webpack
|
|
1364
|
+
* Set to `true` to enable bundle analysis, or pass an object with options: [for webpack](https://github.com/webpack/webpack-bundle-analyzer#options-for-plugin) or [for vite](https://github.com/btd/rollup-plugin-visualizer#options).
|
|
1365
1365
|
*
|
|
1366
1366
|
* @example
|
|
1367
1367
|
* ```js
|
|
@@ -1725,7 +1725,7 @@ interface ConfigSchema {
|
|
|
1725
1725
|
/**
|
|
1726
1726
|
* Options to pass directly to `chokidar`.
|
|
1727
1727
|
*
|
|
1728
|
-
* @see [chokidar](https://github.com/paulmillr/chokidar
|
|
1728
|
+
* @see [chokidar](https://github.com/paulmillr/chokidar)
|
|
1729
1729
|
*/
|
|
1730
1730
|
chokidar: ChokidarOptions;
|
|
1731
1731
|
};
|
|
@@ -2139,7 +2139,7 @@ interface ConfigSchema {
|
|
|
2139
2139
|
* for Nuxt projects.
|
|
2140
2140
|
*
|
|
2141
2141
|
* @default true
|
|
2142
|
-
* @see [Chrome DevTools Project Settings](https://docs.google.com/document/d/1rfKPnxsNuXhnF7AiQZhu9kIwdiMS5hnAI05HBwFuBSM)
|
|
2142
|
+
* @see [Chrome DevTools Project Settings](https://docs.google.com/document/d/1rfKPnxsNuXhnF7AiQZhu9kIwdiMS5hnAI05HBwFuBSM/)
|
|
2143
2143
|
*/
|
|
2144
2144
|
chromeDevtoolsProjectSettings: boolean;
|
|
2145
2145
|
/**
|
|
@@ -2386,7 +2386,7 @@ interface ConfigSchema {
|
|
|
2386
2386
|
* @note Only JSON serializable options should be passed by Nuxt config.
|
|
2387
2387
|
* For more control, you can use `app/router.options.ts` file.
|
|
2388
2388
|
*
|
|
2389
|
-
* @see [Vue Router documentation](https://router.vuejs.org/api/interfaces/routeroptions
|
|
2389
|
+
* @see [Vue Router documentation](https://router.vuejs.org/api/interfaces/routeroptions)
|
|
2390
2390
|
*/
|
|
2391
2391
|
options: RouterConfigSerializable;
|
|
2392
2392
|
};
|
|
@@ -2458,7 +2458,7 @@ interface ConfigSchema {
|
|
|
2458
2458
|
/**
|
|
2459
2459
|
* Configuration that will be passed directly to Vite.
|
|
2460
2460
|
*
|
|
2461
|
-
* @see [Vite configuration docs](https://vite.dev/config) for more information.
|
|
2461
|
+
* @see [Vite configuration docs](https://vite.dev/config/) for more information.
|
|
2462
2462
|
* Please note that not all vite options are supported in Nuxt.
|
|
2463
2463
|
*/
|
|
2464
2464
|
vite: ViteOptions;
|
|
@@ -2466,7 +2466,7 @@ interface ConfigSchema {
|
|
|
2466
2466
|
/**
|
|
2467
2467
|
* Nuxt uses `webpack-bundle-analyzer` to visualize your bundles and how to optimize them.
|
|
2468
2468
|
*
|
|
2469
|
-
* Set to `true` to enable bundle analysis, or pass an object with options: [for webpack](https://github.com/webpack
|
|
2469
|
+
* Set to `true` to enable bundle analysis, or pass an object with options: [for webpack](https://github.com/webpack/webpack-bundle-analyzer#options-for-plugin) or [for vite](https://github.com/btd/rollup-plugin-visualizer#options).
|
|
2470
2470
|
*
|
|
2471
2471
|
* @example
|
|
2472
2472
|
* ```js
|
|
@@ -2489,7 +2489,7 @@ interface ConfigSchema {
|
|
|
2489
2489
|
/**
|
|
2490
2490
|
* Enables Common CSS Extraction.
|
|
2491
2491
|
*
|
|
2492
|
-
* Using [mini-css-extract-plugin](https://github.com/webpack
|
|
2492
|
+
* Using [mini-css-extract-plugin](https://github.com/webpack/mini-css-extract-plugin) under the hood, your CSS will be extracted into separate files, usually one per component. This allows caching your CSS and JavaScript separately.
|
|
2493
2493
|
*
|
|
2494
2494
|
* @example
|
|
2495
2495
|
* ```js
|
|
@@ -2576,25 +2576,25 @@ interface ConfigSchema {
|
|
|
2576
2576
|
*/
|
|
2577
2577
|
loaders: {
|
|
2578
2578
|
/**
|
|
2579
|
-
* @see [esbuild loader](https://github.com/
|
|
2579
|
+
* @see [esbuild loader](https://github.com/privatenumber/esbuild-loader)
|
|
2580
2580
|
*/
|
|
2581
2581
|
esbuild: Omit<LoaderOptions, 'loader'>;
|
|
2582
2582
|
/**
|
|
2583
|
-
* @see [`file-loader` Options](https://github.com/webpack
|
|
2583
|
+
* @see [`file-loader` Options](https://github.com/webpack/file-loader#options)
|
|
2584
2584
|
*/
|
|
2585
2585
|
file: {
|
|
2586
2586
|
esModule: boolean;
|
|
2587
2587
|
limit: number;
|
|
2588
2588
|
};
|
|
2589
2589
|
/**
|
|
2590
|
-
* @see [`file-loader` Options](https://github.com/webpack
|
|
2590
|
+
* @see [`file-loader` Options](https://github.com/webpack/file-loader#options)
|
|
2591
2591
|
*/
|
|
2592
2592
|
fontUrl: {
|
|
2593
2593
|
esModule: boolean;
|
|
2594
2594
|
limit: number;
|
|
2595
2595
|
};
|
|
2596
2596
|
/**
|
|
2597
|
-
* @see [`file-loader` Options](https://github.com/webpack
|
|
2597
|
+
* @see [`file-loader` Options](https://github.com/webpack/file-loader#options)
|
|
2598
2598
|
*/
|
|
2599
2599
|
imgUrl: {
|
|
2600
2600
|
esModule: boolean;
|
|
@@ -2609,7 +2609,7 @@ interface ConfigSchema {
|
|
|
2609
2609
|
*/
|
|
2610
2610
|
vue: Partial<VueLoaderOptions>;
|
|
2611
2611
|
/**
|
|
2612
|
-
* See [css-loader](https://github.com/webpack
|
|
2612
|
+
* See [css-loader](https://github.com/webpack/css-loader) for available options.
|
|
2613
2613
|
*/
|
|
2614
2614
|
css: {
|
|
2615
2615
|
importLoaders: number;
|
|
@@ -2619,7 +2619,7 @@ interface ConfigSchema {
|
|
|
2619
2619
|
esModule: boolean;
|
|
2620
2620
|
};
|
|
2621
2621
|
/**
|
|
2622
|
-
* See [css-loader](https://github.com/webpack
|
|
2622
|
+
* See [css-loader](https://github.com/webpack/css-loader) for available options.
|
|
2623
2623
|
*/
|
|
2624
2624
|
cssModules: {
|
|
2625
2625
|
importLoaders: number;
|
|
@@ -2632,11 +2632,11 @@ interface ConfigSchema {
|
|
|
2632
2632
|
};
|
|
2633
2633
|
};
|
|
2634
2634
|
/**
|
|
2635
|
-
* @see [`less-loader` Options](https://github.com/webpack
|
|
2635
|
+
* @see [`less-loader` Options](https://github.com/webpack/less-loader#options)
|
|
2636
2636
|
*/
|
|
2637
2637
|
less: any;
|
|
2638
2638
|
/**
|
|
2639
|
-
* @see [`sass-loader` Options](https://github.com/webpack
|
|
2639
|
+
* @see [`sass-loader` Options](https://github.com/webpack/sass-loader#options)
|
|
2640
2640
|
*/
|
|
2641
2641
|
sass: {
|
|
2642
2642
|
sassOptions: {
|
|
@@ -2644,11 +2644,11 @@ interface ConfigSchema {
|
|
|
2644
2644
|
};
|
|
2645
2645
|
};
|
|
2646
2646
|
/**
|
|
2647
|
-
* @see [`sass-loader` Options](https://github.com/webpack
|
|
2647
|
+
* @see [`sass-loader` Options](https://github.com/webpack/sass-loader#options)
|
|
2648
2648
|
*/
|
|
2649
2649
|
scss: any;
|
|
2650
2650
|
/**
|
|
2651
|
-
* @see [`stylus-loader` Options](https://github.com/webpack
|
|
2651
|
+
* @see [`stylus-loader` Options](https://github.com/webpack/stylus-loader#options)
|
|
2652
2652
|
*/
|
|
2653
2653
|
stylus: any;
|
|
2654
2654
|
vueStyle: any;
|
|
@@ -2678,7 +2678,7 @@ interface ConfigSchema {
|
|
|
2678
2678
|
*
|
|
2679
2679
|
* Defaults to true when `extractCSS` is enabled.
|
|
2680
2680
|
*
|
|
2681
|
-
* @see [css-minimizer-webpack-plugin documentation](https://github.com/webpack
|
|
2681
|
+
* @see [css-minimizer-webpack-plugin documentation](https://github.com/webpack/css-minimizer-webpack-plugin).
|
|
2682
2682
|
*/
|
|
2683
2683
|
optimizeCSS: false | BasePluginOptions & DefinedDefaultMinimizerAndOptions<{}>;
|
|
2684
2684
|
/**
|
|
@@ -2686,7 +2686,7 @@ interface ConfigSchema {
|
|
|
2686
2686
|
*/
|
|
2687
2687
|
optimization: false | Configuration['optimization'];
|
|
2688
2688
|
/**
|
|
2689
|
-
* Customize PostCSS Loader. same options as [`postcss-loader` options](https://github.com/webpack
|
|
2689
|
+
* Customize PostCSS Loader. same options as [`postcss-loader` options](https://github.com/webpack/postcss-loader#options)
|
|
2690
2690
|
*/
|
|
2691
2691
|
postcss: {
|
|
2692
2692
|
execute?: boolean;
|
|
@@ -2704,7 +2704,7 @@ interface ConfigSchema {
|
|
|
2704
2704
|
*/
|
|
2705
2705
|
devMiddleware: Options$4<IncomingMessage, ServerResponse>;
|
|
2706
2706
|
/**
|
|
2707
|
-
* See [webpack-hot-middleware](https://github.com/webpack
|
|
2707
|
+
* See [webpack-hot-middleware](https://github.com/webpack/webpack-hot-middleware) for available options.
|
|
2708
2708
|
*/
|
|
2709
2709
|
hotMiddleware: MiddlewareOptions & {
|
|
2710
2710
|
client?: ClientOptions;
|
package/dist/index.d.ts
CHANGED
|
@@ -920,7 +920,7 @@ interface ImportsOptions extends UnimportOptions {
|
|
|
920
920
|
autoImport?: boolean;
|
|
921
921
|
/**
|
|
922
922
|
* Directories to scan for auto imports.
|
|
923
|
-
* @see https://nuxt.com/docs/4.x/guide/directory-structure/composables#how-files-are-scanned
|
|
923
|
+
* @see https://nuxt.com/docs/4.x/guide/directory-structure/app/composables#how-files-are-scanned
|
|
924
924
|
*/
|
|
925
925
|
dirs?: string[];
|
|
926
926
|
/**
|
|
@@ -948,13 +948,13 @@ interface ConfigSchema {
|
|
|
948
948
|
*
|
|
949
949
|
* Any components in the directories configured here can be used throughout your pages, layouts (and other components) without needing to explicitly import them.
|
|
950
950
|
*
|
|
951
|
-
* @see [`components/` directory documentation](https://nuxt.com/docs/4.x/guide/directory-structure/components)
|
|
951
|
+
* @see [`components/` directory documentation](https://nuxt.com/docs/4.x/guide/directory-structure/app/components)
|
|
952
952
|
*/
|
|
953
953
|
components: boolean | ComponentsOptions | ComponentsOptions['dirs'];
|
|
954
954
|
/**
|
|
955
955
|
* Configure how Nuxt auto-imports composables into your application.
|
|
956
956
|
*
|
|
957
|
-
* @see [Nuxt documentation](https://nuxt.com/docs/4.x/guide/directory-structure/composables)
|
|
957
|
+
* @see [Nuxt documentation](https://nuxt.com/docs/4.x/guide/directory-structure/app/composables)
|
|
958
958
|
*/
|
|
959
959
|
imports: ImportsOptions;
|
|
960
960
|
/**
|
|
@@ -998,7 +998,7 @@ interface ConfigSchema {
|
|
|
998
998
|
/**
|
|
999
999
|
* Options for the Vue compiler that will be passed at build time.
|
|
1000
1000
|
*
|
|
1001
|
-
* @see [Vue documentation](https://vuejs.org/api/application
|
|
1001
|
+
* @see [Vue documentation](https://vuejs.org/api/application#app-config-compileroptions)
|
|
1002
1002
|
*/
|
|
1003
1003
|
compilerOptions: CompilerOptions;
|
|
1004
1004
|
/**
|
|
@@ -1010,9 +1010,9 @@ interface ConfigSchema {
|
|
|
1010
1010
|
*/
|
|
1011
1011
|
propsDestructure: boolean;
|
|
1012
1012
|
/**
|
|
1013
|
-
* It is possible to pass configure the Vue app globally. Only serializable options may be set in your `nuxt.config`. All other options should be set at runtime in a Nuxt plugin
|
|
1013
|
+
* It is possible to pass configure the Vue app globally. Only serializable options may be set in your `nuxt.config`. All other options should be set at runtime in a Nuxt plugin.
|
|
1014
1014
|
*
|
|
1015
|
-
* @see [Vue app config documentation](https://vuejs.org/api/application
|
|
1015
|
+
* @see [Vue app config documentation](https://vuejs.org/api/application#app-config)
|
|
1016
1016
|
*/
|
|
1017
1017
|
config: Serializable<AppConfig$1>;
|
|
1018
1018
|
};
|
|
@@ -1107,7 +1107,7 @@ interface ConfigSchema {
|
|
|
1107
1107
|
*
|
|
1108
1108
|
* This can be overridden with `definePageMeta` on an individual page. Only JSON-serializable values are allowed.
|
|
1109
1109
|
*
|
|
1110
|
-
* @see [Vue Transition docs](https://vuejs.org/api/built-in-components
|
|
1110
|
+
* @see [Vue Transition docs](https://vuejs.org/api/built-in-components#transition)
|
|
1111
1111
|
*/
|
|
1112
1112
|
layoutTransition: NuxtAppConfig['layoutTransition'];
|
|
1113
1113
|
/**
|
|
@@ -1115,7 +1115,7 @@ interface ConfigSchema {
|
|
|
1115
1115
|
*
|
|
1116
1116
|
* This can be overridden with `definePageMeta` on an individual page. Only JSON-serializable values are allowed.
|
|
1117
1117
|
*
|
|
1118
|
-
* @see [Vue Transition docs](https://vuejs.org/api/built-in-components
|
|
1118
|
+
* @see [Vue Transition docs](https://vuejs.org/api/built-in-components#transition)
|
|
1119
1119
|
*/
|
|
1120
1120
|
pageTransition: NuxtAppConfig['pageTransition'];
|
|
1121
1121
|
/**
|
|
@@ -1132,7 +1132,7 @@ interface ConfigSchema {
|
|
|
1132
1132
|
*
|
|
1133
1133
|
* This can be overridden with `definePageMeta` on an individual page. Only JSON-serializable values are allowed.
|
|
1134
1134
|
*
|
|
1135
|
-
* @see [Vue KeepAlive](https://vuejs.org/api/built-in-components
|
|
1135
|
+
* @see [Vue KeepAlive](https://vuejs.org/api/built-in-components#keepalive)
|
|
1136
1136
|
*/
|
|
1137
1137
|
keepalive: NuxtAppConfig['keepalive'];
|
|
1138
1138
|
/**
|
|
@@ -1234,7 +1234,7 @@ interface ConfigSchema {
|
|
|
1234
1234
|
* and these plugins do not need to be listed in `nuxt.config` unless you
|
|
1235
1235
|
* need to customize their order. All plugins are deduplicated by their src path.
|
|
1236
1236
|
*
|
|
1237
|
-
* @see [`plugins/` directory documentation](https://nuxt.com/docs/4.x/guide/directory-structure/plugins)
|
|
1237
|
+
* @see [`plugins/` directory documentation](https://nuxt.com/docs/4.x/guide/directory-structure/app/plugins)
|
|
1238
1238
|
*
|
|
1239
1239
|
* @example
|
|
1240
1240
|
* ```js
|
|
@@ -1361,7 +1361,7 @@ interface ConfigSchema {
|
|
|
1361
1361
|
/**
|
|
1362
1362
|
* Nuxt allows visualizing your bundles and how to optimize them.
|
|
1363
1363
|
*
|
|
1364
|
-
* Set to `true` to enable bundle analysis, or pass an object with options: [for webpack](https://github.com/webpack
|
|
1364
|
+
* Set to `true` to enable bundle analysis, or pass an object with options: [for webpack](https://github.com/webpack/webpack-bundle-analyzer#options-for-plugin) or [for vite](https://github.com/btd/rollup-plugin-visualizer#options).
|
|
1365
1365
|
*
|
|
1366
1366
|
* @example
|
|
1367
1367
|
* ```js
|
|
@@ -1725,7 +1725,7 @@ interface ConfigSchema {
|
|
|
1725
1725
|
/**
|
|
1726
1726
|
* Options to pass directly to `chokidar`.
|
|
1727
1727
|
*
|
|
1728
|
-
* @see [chokidar](https://github.com/paulmillr/chokidar
|
|
1728
|
+
* @see [chokidar](https://github.com/paulmillr/chokidar)
|
|
1729
1729
|
*/
|
|
1730
1730
|
chokidar: ChokidarOptions;
|
|
1731
1731
|
};
|
|
@@ -2139,7 +2139,7 @@ interface ConfigSchema {
|
|
|
2139
2139
|
* for Nuxt projects.
|
|
2140
2140
|
*
|
|
2141
2141
|
* @default true
|
|
2142
|
-
* @see [Chrome DevTools Project Settings](https://docs.google.com/document/d/1rfKPnxsNuXhnF7AiQZhu9kIwdiMS5hnAI05HBwFuBSM)
|
|
2142
|
+
* @see [Chrome DevTools Project Settings](https://docs.google.com/document/d/1rfKPnxsNuXhnF7AiQZhu9kIwdiMS5hnAI05HBwFuBSM/)
|
|
2143
2143
|
*/
|
|
2144
2144
|
chromeDevtoolsProjectSettings: boolean;
|
|
2145
2145
|
/**
|
|
@@ -2386,7 +2386,7 @@ interface ConfigSchema {
|
|
|
2386
2386
|
* @note Only JSON serializable options should be passed by Nuxt config.
|
|
2387
2387
|
* For more control, you can use `app/router.options.ts` file.
|
|
2388
2388
|
*
|
|
2389
|
-
* @see [Vue Router documentation](https://router.vuejs.org/api/interfaces/routeroptions
|
|
2389
|
+
* @see [Vue Router documentation](https://router.vuejs.org/api/interfaces/routeroptions)
|
|
2390
2390
|
*/
|
|
2391
2391
|
options: RouterConfigSerializable;
|
|
2392
2392
|
};
|
|
@@ -2458,7 +2458,7 @@ interface ConfigSchema {
|
|
|
2458
2458
|
/**
|
|
2459
2459
|
* Configuration that will be passed directly to Vite.
|
|
2460
2460
|
*
|
|
2461
|
-
* @see [Vite configuration docs](https://vite.dev/config) for more information.
|
|
2461
|
+
* @see [Vite configuration docs](https://vite.dev/config/) for more information.
|
|
2462
2462
|
* Please note that not all vite options are supported in Nuxt.
|
|
2463
2463
|
*/
|
|
2464
2464
|
vite: ViteOptions;
|
|
@@ -2466,7 +2466,7 @@ interface ConfigSchema {
|
|
|
2466
2466
|
/**
|
|
2467
2467
|
* Nuxt uses `webpack-bundle-analyzer` to visualize your bundles and how to optimize them.
|
|
2468
2468
|
*
|
|
2469
|
-
* Set to `true` to enable bundle analysis, or pass an object with options: [for webpack](https://github.com/webpack
|
|
2469
|
+
* Set to `true` to enable bundle analysis, or pass an object with options: [for webpack](https://github.com/webpack/webpack-bundle-analyzer#options-for-plugin) or [for vite](https://github.com/btd/rollup-plugin-visualizer#options).
|
|
2470
2470
|
*
|
|
2471
2471
|
* @example
|
|
2472
2472
|
* ```js
|
|
@@ -2489,7 +2489,7 @@ interface ConfigSchema {
|
|
|
2489
2489
|
/**
|
|
2490
2490
|
* Enables Common CSS Extraction.
|
|
2491
2491
|
*
|
|
2492
|
-
* Using [mini-css-extract-plugin](https://github.com/webpack
|
|
2492
|
+
* Using [mini-css-extract-plugin](https://github.com/webpack/mini-css-extract-plugin) under the hood, your CSS will be extracted into separate files, usually one per component. This allows caching your CSS and JavaScript separately.
|
|
2493
2493
|
*
|
|
2494
2494
|
* @example
|
|
2495
2495
|
* ```js
|
|
@@ -2576,25 +2576,25 @@ interface ConfigSchema {
|
|
|
2576
2576
|
*/
|
|
2577
2577
|
loaders: {
|
|
2578
2578
|
/**
|
|
2579
|
-
* @see [esbuild loader](https://github.com/
|
|
2579
|
+
* @see [esbuild loader](https://github.com/privatenumber/esbuild-loader)
|
|
2580
2580
|
*/
|
|
2581
2581
|
esbuild: Omit<LoaderOptions, 'loader'>;
|
|
2582
2582
|
/**
|
|
2583
|
-
* @see [`file-loader` Options](https://github.com/webpack
|
|
2583
|
+
* @see [`file-loader` Options](https://github.com/webpack/file-loader#options)
|
|
2584
2584
|
*/
|
|
2585
2585
|
file: {
|
|
2586
2586
|
esModule: boolean;
|
|
2587
2587
|
limit: number;
|
|
2588
2588
|
};
|
|
2589
2589
|
/**
|
|
2590
|
-
* @see [`file-loader` Options](https://github.com/webpack
|
|
2590
|
+
* @see [`file-loader` Options](https://github.com/webpack/file-loader#options)
|
|
2591
2591
|
*/
|
|
2592
2592
|
fontUrl: {
|
|
2593
2593
|
esModule: boolean;
|
|
2594
2594
|
limit: number;
|
|
2595
2595
|
};
|
|
2596
2596
|
/**
|
|
2597
|
-
* @see [`file-loader` Options](https://github.com/webpack
|
|
2597
|
+
* @see [`file-loader` Options](https://github.com/webpack/file-loader#options)
|
|
2598
2598
|
*/
|
|
2599
2599
|
imgUrl: {
|
|
2600
2600
|
esModule: boolean;
|
|
@@ -2609,7 +2609,7 @@ interface ConfigSchema {
|
|
|
2609
2609
|
*/
|
|
2610
2610
|
vue: Partial<VueLoaderOptions>;
|
|
2611
2611
|
/**
|
|
2612
|
-
* See [css-loader](https://github.com/webpack
|
|
2612
|
+
* See [css-loader](https://github.com/webpack/css-loader) for available options.
|
|
2613
2613
|
*/
|
|
2614
2614
|
css: {
|
|
2615
2615
|
importLoaders: number;
|
|
@@ -2619,7 +2619,7 @@ interface ConfigSchema {
|
|
|
2619
2619
|
esModule: boolean;
|
|
2620
2620
|
};
|
|
2621
2621
|
/**
|
|
2622
|
-
* See [css-loader](https://github.com/webpack
|
|
2622
|
+
* See [css-loader](https://github.com/webpack/css-loader) for available options.
|
|
2623
2623
|
*/
|
|
2624
2624
|
cssModules: {
|
|
2625
2625
|
importLoaders: number;
|
|
@@ -2632,11 +2632,11 @@ interface ConfigSchema {
|
|
|
2632
2632
|
};
|
|
2633
2633
|
};
|
|
2634
2634
|
/**
|
|
2635
|
-
* @see [`less-loader` Options](https://github.com/webpack
|
|
2635
|
+
* @see [`less-loader` Options](https://github.com/webpack/less-loader#options)
|
|
2636
2636
|
*/
|
|
2637
2637
|
less: any;
|
|
2638
2638
|
/**
|
|
2639
|
-
* @see [`sass-loader` Options](https://github.com/webpack
|
|
2639
|
+
* @see [`sass-loader` Options](https://github.com/webpack/sass-loader#options)
|
|
2640
2640
|
*/
|
|
2641
2641
|
sass: {
|
|
2642
2642
|
sassOptions: {
|
|
@@ -2644,11 +2644,11 @@ interface ConfigSchema {
|
|
|
2644
2644
|
};
|
|
2645
2645
|
};
|
|
2646
2646
|
/**
|
|
2647
|
-
* @see [`sass-loader` Options](https://github.com/webpack
|
|
2647
|
+
* @see [`sass-loader` Options](https://github.com/webpack/sass-loader#options)
|
|
2648
2648
|
*/
|
|
2649
2649
|
scss: any;
|
|
2650
2650
|
/**
|
|
2651
|
-
* @see [`stylus-loader` Options](https://github.com/webpack
|
|
2651
|
+
* @see [`stylus-loader` Options](https://github.com/webpack/stylus-loader#options)
|
|
2652
2652
|
*/
|
|
2653
2653
|
stylus: any;
|
|
2654
2654
|
vueStyle: any;
|
|
@@ -2678,7 +2678,7 @@ interface ConfigSchema {
|
|
|
2678
2678
|
*
|
|
2679
2679
|
* Defaults to true when `extractCSS` is enabled.
|
|
2680
2680
|
*
|
|
2681
|
-
* @see [css-minimizer-webpack-plugin documentation](https://github.com/webpack
|
|
2681
|
+
* @see [css-minimizer-webpack-plugin documentation](https://github.com/webpack/css-minimizer-webpack-plugin).
|
|
2682
2682
|
*/
|
|
2683
2683
|
optimizeCSS: false | BasePluginOptions & DefinedDefaultMinimizerAndOptions<{}>;
|
|
2684
2684
|
/**
|
|
@@ -2686,7 +2686,7 @@ interface ConfigSchema {
|
|
|
2686
2686
|
*/
|
|
2687
2687
|
optimization: false | Configuration['optimization'];
|
|
2688
2688
|
/**
|
|
2689
|
-
* Customize PostCSS Loader. same options as [`postcss-loader` options](https://github.com/webpack
|
|
2689
|
+
* Customize PostCSS Loader. same options as [`postcss-loader` options](https://github.com/webpack/postcss-loader#options)
|
|
2690
2690
|
*/
|
|
2691
2691
|
postcss: {
|
|
2692
2692
|
execute?: boolean;
|
|
@@ -2704,7 +2704,7 @@ interface ConfigSchema {
|
|
|
2704
2704
|
*/
|
|
2705
2705
|
devMiddleware: Options$4<IncomingMessage, ServerResponse>;
|
|
2706
2706
|
/**
|
|
2707
|
-
* See [webpack-hot-middleware](https://github.com/webpack
|
|
2707
|
+
* See [webpack-hot-middleware](https://github.com/webpack/webpack-hot-middleware) for available options.
|
|
2708
2708
|
*/
|
|
2709
2709
|
hotMiddleware: MiddlewareOptions & {
|
|
2710
2710
|
client?: ClientOptions;
|