Skip to content

Commit

Permalink
rm presets for now
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperkristensen committed Jan 10, 2025
1 parent b11d76a commit f5eccef
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions packages/admin/admin-bundler/src/lib/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { VIRTUAL_MODULES } from "@medusajs/admin-shared"
import fs from "fs"
import path from "path"
import { Config } from "tailwindcss"
import type { InlineConfig } from "vite"
Expand Down Expand Up @@ -104,24 +103,6 @@ function createTailwindConfig(entry: string, sources: string[] = []) {

const extensions = sources.map((s) => path.join(s, "**/*.{js,ts,jsx,tsx}"))

const presets: string[] = [require("@medusajs/ui-preset")]

/**
* Look for a preset.{ts,js} file in each of the sources. If it exists, we should push it to the presets array.
*/
for (const source of sources) {
const tsPreset = path.join(source, `preset.ts`)
if (fs.existsSync(tsPreset)) {
presets.push(tsPreset)
continue
}

const jsPreset = path.join(source, `preset.js`)
if (fs.existsSync(jsPreset)) {
presets.push(jsPreset)
}
}

const config: Config = {
presets: [require("@medusajs/ui-preset")],
content: [html, root, dashboard, ui, ...extensions],
Expand Down

0 comments on commit f5eccef

Please sign in to comment.