Skip to content

Commit 01c3557

Browse files
committed
chore: try
1 parent 9aae078 commit 01c3557

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

app/app.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import type { Directions } from '@nuxtjs/i18n'
33
import { useEventListener, onKeyDown, onKeyUp } from '@vueuse/core'
44
import { isEditableElement } from '~/utils/input'
55
6+
import 'uno.css'
7+
import('uno:icons.css') // make icon css a separate, async chunk
8+
69
const route = useRoute()
710
const router = useRouter()
811
const { locale, locales } = useI18n()

nuxt.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ export default defineNuxtConfig({
4949
},
5050
},
5151

52+
unocss: {
53+
autoImport: false,
54+
},
55+
5256
devtools: { enabled: true },
5357

5458
devServer: {

uno.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ export default defineConfig({
3535
// keep this preset last
3636
...(process.env.CI ? [] : [presetRtl(), presetA11y()]),
3737
].filter(Boolean),
38+
content: {
39+
pipeline: {
40+
exclude: [/\.(css|postcss|sass|scss|less|stylus|styl)($|\?)/, /[/\\]node_modules[/\\]/],
41+
},
42+
},
3843
transformers: [transformerDirectives(), transformerVariantGroup()],
3944
theme: {
4045
spacing: { DEFAULT: '4px' },

0 commit comments

Comments
 (0)