Skip to content

Commit 9eb00f0

Browse files
authored
feat: unocss configuration (#110)
1 parent 55a2ffc commit 9eb00f0

File tree

5 files changed

+1066
-56
lines changed

5 files changed

+1066
-56
lines changed

.vscode/settings.json

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
],
4949
"cSpell.words": [
5050
"antfu",
51+
"unocss",
5152
"vuejs"
5253
]
5354
}

nuxt.config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// https://nuxt.com/docs/api/configuration/nuxt-config
22
export default defineNuxtConfig({
3-
modules: ["@nuxt/eslint"],
3+
modules: ["@nuxt/eslint", "@unocss/nuxt"],
44
devtools: { enabled: true },
55
future: { compatibilityVersion: 4 },
66
compatibilityDate: "2024-04-03",
77
eslint: {
88
config: { standalone: false },
99
},
10+
unocss: { nuxtLayers: true },
1011
});

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
},
2020
"devDependencies": {
2121
"@antfu/eslint-config": "^3.8.0",
22-
"@nuxt/eslint": "^0.6.1"
22+
"@nuxt/eslint": "^0.6.1",
23+
"@unocss/core": "^0.64.0",
24+
"@unocss/nuxt": "^0.64.0",
25+
"unocss": "^0.64.0"
2326
}
2427
}

0 commit comments

Comments
 (0)