Skip to content

Commit

Permalink
fix: prevent shuriken-ui preset to be included more than once
Browse files Browse the repository at this point in the history
  • Loading branch information
stafyniaksacha committed Aug 16, 2023
1 parent e819ae6 commit a8f52f2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
11 changes: 6 additions & 5 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ export default defineNuxtConfig({
'@nuxtjs/tailwindcss',
'nuxt-icon',
],
tailwindcss: {
config: withShurikenUI({
content: [],
}),
},
colorMode: {
classSuffix: '',
},
Expand All @@ -35,4 +30,10 @@ export default defineNuxtConfig({
global: false,
},
],
hooks: {
// @ts-expect-error - hook is handled by nuxtjs/tailwindcss
'tailwindcss:config'(config: Config) {
withShurikenUI(config)
},
},
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@iconify/vue": "^4.1.1",
"@nuxtjs/color-mode": "^3.3.0",
"@nuxtjs/tailwindcss": "^6.8.0",
"@shuriken-ui/tailwind": "1.0.0-beta.7",
"@shuriken-ui/tailwind": "1.0.0-beta.8",
"@vueuse/nuxt": "^10.3.0",
"autoprefixer": "^10.4.14",
"nuxt-icon": "^0.5.0"
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a8f52f2

Please sign in to comment.