Skip to content

Commit

Permalink
fix(transform): run additional transform step when rendering bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 21, 2024
1 parent 96accaa commit d899315
Show file tree
Hide file tree
Showing 7 changed files with 836 additions and 92 deletions.
5 changes: 4 additions & 1 deletion playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
export default defineNuxtConfig({
modules: ['@nuxt/fonts', '@nuxtjs/tailwindcss'],
modules: ['@nuxt/fonts', '@nuxtjs/tailwindcss', '@unocss/nuxt'],
unocss: {
disableNuxtInlineStyle: false,
},
fonts: {
providers: {
custom: '~/providers/custom'
Expand Down
2 changes: 2 additions & 0 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
"dependencies": {
"@nuxt/fonts": "latest",
"@nuxtjs/tailwindcss": "latest",
"@unocss/nuxt": "^0.58.5",
"nuxt": "latest",
"tailwindcss": "^3.4.1",
"unocss": "^0.58.5",
"vue": "latest",
"vue-router": "latest"
},
Expand Down
5 changes: 5 additions & 0 deletions playground/pages/unocss.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template>
<div class="font-barlow">
unocss support
</div>
</template>
9 changes: 9 additions & 0 deletions playground/uno.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'unocss'

export default defineConfig({
theme: {
fontFamily: {
'barlow': 'Barlow',
},
},
})
Loading

0 comments on commit d899315

Please sign in to comment.