Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/nuxtPublic

Commitf5085f7

Browse files
Merge branch 'main' into feat/cookie-refresh-option
2 parents434e733 +2a91221 commitf5085f7

33 files changed

+577
-558
lines changed

‎docs/1.getting-started/03.configuration.md‎

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -133,37 +133,37 @@ As stated above, `runtimeConfig` and `app.config` are both used to expose variab
133133
-`runtimeConfig`: Private or public tokens that need to be specified after build using environment variables.
134134
-`app.config`: Public tokens that are determined at build time, website configuration such as theme variant, title and any project config that are not sensitive.
135135

136-
Feature|`runtimeConfig`|`app.config`
137-
-------------------------------|------------------|-------------------
138-
Client Side| Hydrated| Bundled
139-
Environment Variables| ✅ Yes | ❌ No
140-
Reactive| ✅ Yes | ✅ Yes
141-
Types support| ✅ Partial | ✅ Yes
142-
Configuration per Request| ❌ No | ✅ Yes
143-
Hot Module Replacement| ❌ No | ✅ Yes
144-
Non primitive JS types| ❌ No | ✅ Yes
136+
|Feature|`runtimeConfig`|`app.config`|
137+
|---------------------------|-----------------|--------------|
138+
|Client Side| Hydrated| Bundled|
139+
|Environment Variables| ✅ Yes| ❌ No|
140+
|Reactive| ✅ Yes| ✅ Yes|
141+
|Types support| ✅ Partial| ✅ Yes|
142+
|Configuration per Request| ❌ No| ✅ Yes|
143+
|Hot Module Replacement| ❌ No| ✅ Yes|
144+
|Non primitive JS types| ❌ No| ✅ Yes|
145145

146146
##External Configuration Files
147147

148148
Nuxt uses[`nuxt.config.ts`](/docs/4.x/directory-structure/nuxt-config) file as the single source of truth for configurations and skips reading external configuration files. During the course of building your project, you may have a need to configure those. The following table highlights common configurations and, where applicable, how they can be configured with Nuxt.
149149

150-
Name| Config File| How To Configure
151-
---------------------------------------------|---------------------------|-------------------------
152-
[Nitro](https://nitro.build)|~~`nitro.config.ts`~~| Use[`nitro`](/docs/4.x/api/nuxt-config#nitro) key in`nuxt.config`
153-
[PostCSS](https://postcss.org)|~~`postcss.config.js`~~| Use[`postcss`](/docs/4.x/api/nuxt-config#postcss) key in`nuxt.config`
154-
[Vite](https://vite.dev)|~~`vite.config.ts`~~| Use[`vite`](/docs/4.x/api/nuxt-config#vite) key in`nuxt.config`
155-
[webpack](https://webpack.js.org)|~~`webpack.config.ts`~~| Use[`webpack`](/docs/4.x/api/nuxt-config#webpack-1) key in`nuxt.config`
150+
|Name| Config File| How To Configure|
151+
|-----------------------------------|-------------------------|---------------------------------------------------------------------------|
152+
|[Nitro](https://nitro.build)|~~`nitro.config.ts`~~| Use[`nitro`](/docs/4.x/api/nuxt-config#nitro) key in`nuxt.config`|
153+
|[PostCSS](https://postcss.org)|~~`postcss.config.js`~~| Use[`postcss`](/docs/4.x/api/nuxt-config#postcss) key in`nuxt.config`|
154+
|[Vite](https://vite.dev)|~~`vite.config.ts`~~| Use[`vite`](/docs/4.x/api/nuxt-config#vite) key in`nuxt.config`|
155+
|[webpack](https://webpack.js.org)|~~`webpack.config.ts`~~| Use[`webpack`](/docs/4.x/api/nuxt-config#webpack-1) key in`nuxt.config`|
156156

157157
Here is a list of other common config files:
158158

159-
Name | Config File| How To Configure
160-
---------------------------------------------|-------------------------|--------------------------
161-
[TypeScript](https://www.typescriptlang.org) |`tsconfig.json`|[More Info](/docs/4.x/directory-structure/tsconfig)
162-
[ESLint](https://eslint.org) |`eslint.config.js`|[More Info](https://eslint.org/docs/latest/use/configure/configuration-files)
163-
[Prettier](https://prettier.io) |`prettier.config.js`|[More Info](https://prettier.io/docs/configuration.html)
164-
[Stylelint](https://stylelint.io) |`stylelint.config.js`|[More Info](https://stylelint.io/user-guide/configure/)
165-
[TailwindCSS](https://tailwindcss.com) |`tailwind.config.js`|[More Info](https://tailwindcss.nuxtjs.org/tailwindcss/configuration/)
166-
[Vitest](https://vitest.dev) |`vitest.config.ts`|[More Info](https://vitest.dev/config/)
159+
|Name| Config File| How To Configure|
160+
|----------------------------------------------|-----------------------|-------------------------------------------------------------------------------|
161+
|[TypeScript](https://www.typescriptlang.org)|`tsconfig.json`|[More Info](/docs/4.x/directory-structure/tsconfig)|
162+
|[ESLint](https://eslint.org)|`eslint.config.js`|[More Info](https://eslint.org/docs/latest/use/configure/configuration-files)|
163+
|[Prettier](https://prettier.io)|`prettier.config.js`|[More Info](https://prettier.io/docs/configuration.html)|
164+
|[Stylelint](https://stylelint.io)|`stylelint.config.js`|[More Info](https://stylelint.io/user-guide/configure/)|
165+
|[TailwindCSS](https://tailwindcss.com)|`tailwind.config.js`|[More Info](https://tailwindcss.nuxtjs.org/tailwindcss/configuration/)|
166+
|[Vitest](https://vitest.dev)|`vitest.config.ts`|[More Info](https://vitest.dev/config/)|
167167

168168
##Vue Configuration
169169

‎docs/1.getting-started/18.upgrade.md‎

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,23 +1312,23 @@ Read more about Nitro's prerender configuration options.
13121312

13131313
In the table below, there is a quick comparison between 3 versions of Nuxt:
13141314

1315-
Feature / Version| Nuxt 2| Nuxt Bridge| Nuxt 3+
1316-
-------------------------|-----------------|------------------|---------
1317-
Vue| 2| 2| 3
1318-
Stability| 😊 Stable| 😊 Stable| 😊 Stable
1319-
Performance| 🏎 Fast| ✈️ Faster| 🚀 Fastest
1320-
Nitro Engine| ❌ | ✅| ✅
1321-
ESM support| 🌙 Partial | 👍 Better |
1322-
TypeScript| ☑️ Opt-in | 🚧 Partial| ✅
1323-
Composition API| ❌ | 🚧 Partial| ✅
1324-
Options API| ✅ | ✅| ✅
1325-
Components Auto Import| ✅ | ✅| ✅
1326-
`<script setup>` syntax| ❌ | 🚧 Partial| ✅
1327-
Auto Imports| ❌ | ✅| ✅
1328-
webpack| 4| 4| 5
1329-
Vite| ⚠️ Partial | 🚧 Partial| ✅
1330-
Nuxt CLI| ❌ Old| ✅ nuxt| ✅ nuxt
1331-
Static sites| ✅ | ✅| ✅
1315+
|Feature / Version| Nuxt 2| Nuxt Bridge| Nuxt 3+|
1316+
|-------------------------|------------|-------------|------------|
1317+
|Vue| 2| 2| 3|
1318+
|Stability| 😊 Stable| 😊 Stable| 😊 Stable|
1319+
|Performance| 🏎 Fast| ✈️ Faster| 🚀 Fastest|
1320+
|Nitro Engine||||
1321+
|ESM support| 🌙 Partial| 👍 Better||
1322+
|TypeScript| ☑️ Opt-in| 🚧 Partial||
1323+
|Composition API|| 🚧 Partial||
1324+
|Options API||||
1325+
|Components Auto Import||||
1326+
|`<script setup>` syntax|| 🚧 Partial||
1327+
|Auto Imports||||
1328+
|webpack| 4| 4| 5|
1329+
|Vite| ⚠️ Partial| 🚧 Partial||
1330+
|Nuxt CLI| ❌ Old| ✅ nuxt| ✅ nuxt|
1331+
|Static sites||||
13321332

13331333
##Nuxt 2 to Nuxt 3+
13341334

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp