Skip to content

Commit ceaebe2

Browse files
feat: upgrade Nuxt 3 (element-plus#55)
Co-authored-by: Ayaka <KiritaniAyaka@users.noreply.github.com>
1 parent ebdae80 commit ceaebe2

File tree

3 files changed

+1467
-746
lines changed

3 files changed

+1467
-746
lines changed

nuxt.config.ts

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
import { defineNuxtConfig } from 'nuxt'
21
import ElementPlus from 'unplugin-element-plus/vite'
32

43
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
54
export default defineNuxtConfig({
6-
// meta
7-
meta: {
8-
title: 'Element Plus + Nuxt 3',
9-
meta: [
10-
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
11-
{
12-
hid: 'description',
13-
name: 'description',
14-
content: 'ElementPlus + Nuxt3',
15-
},
16-
],
17-
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
5+
app: {
6+
// head
7+
head: {
8+
title: 'Element Plus + Nuxt 3',
9+
meta: [
10+
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
11+
{
12+
hid: 'description',
13+
name: 'description',
14+
content: 'ElementPlus + Nuxt3',
15+
},
16+
],
17+
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
18+
}
1819
},
1920

2021
// css

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,16 @@
2424
"vue": "^3.2.40"
2525
},
2626
"devDependencies": {
27-
"@pinia/nuxt": "^0.4.2",
28-
"@unocss/nuxt": "^0.45.28",
29-
"@vueuse/nuxt": "^9.3.0",
30-
"nuxt": "^3.0.0-rc.11",
27+
"@nuxt/vite-builder": "^3.0.0",
28+
"@pinia/nuxt": "^0.4.6",
29+
"@unocss/nuxt": "^0.47.5",
30+
"@vueuse/nuxt": "^9.6.0",
31+
"nuxt": "^3.0.0",
3132
"sass": "^1.55.0",
3233
"typescript": "^4.8.4",
3334
"unplugin-element-plus": "^0.4.1",
34-
"vite": "^3.1.6"
35+
"vite": "^3.1.6",
36+
"vue-router": "^4.1.6"
3537
},
3638
"pnpm": {
3739
"peerDependencyRules": {

0 commit comments

Comments
 (0)