Skip to content

Commit

Permalink
Cleaner code
Browse files Browse the repository at this point in the history
  • Loading branch information
Blocksnmore committed Dec 2, 2023
1 parent f827c72 commit 3f05cef
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions plugins/tailwind/compiler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ResolvedFreshConfig } from "$fresh/server.ts";
import tailwindCss, { Config } from "tailwindcss";
import postcss from "npm:postcss@8.4.31";
import postcss, { Plugin } from "npm:postcss@8.4.31";
import cssnano from "npm:cssnano@6.0.1";
import autoprefixer from "npm:autoprefixer@10.3.1";
import * as path from "https://deno.land/std@0.207.0/path/mod.ts";
Expand Down Expand Up @@ -61,11 +61,10 @@ export async function initTailwind(
});

// PostCSS types cause deep recursion
// @ts-expect-error Weird types
// deno-lint-ignore no-explicit-any
const plugins: any[] = [
tailwindCss(tailwindConfig),
autoprefixer()
tailwindCss(tailwindConfig) as Plugin,
autoprefixer() as Plugin
];

if (!config.dev) {
Expand Down

0 comments on commit 3f05cef

Please sign in to comment.