Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge committed Oct 28, 2024
1 parent 58858cd commit 926735e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/nuxt/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,17 @@ async function injectStyles(
return;
}

// Inject UploadThing stylesheet if no Tailwind is installed
/**
* Inject UploadThing stylesheet if no Tailwind is installed
*/
if (!hasNuxtModule("@nuxtjs/tailwindcss", nuxt)) {
nuxt.options.css.push("@uploadthing/vue/styles.css");
}

/**
* Else we install our tailwind plugin
*/

const vueDist = await resolver.resolvePath("@uploadthing/vue");
const contentPath = dirname(vueDist) + sep + "**";

Expand Down

0 comments on commit 926735e

Please sign in to comment.