feat: import fresh from fresh (#2479)
Instead of importing as `@fresh/core`.
This commit is contained in:
@@ -6,7 +6,7 @@ A Tailwind CSS plugin to use in Fresh.
|
||||
// dev.ts
|
||||
|
||||
import { tailwind } from "@fresh/plugin-tailwind";
|
||||
import { FreshDevApp } from "@fresh/core/dev";
|
||||
import { FreshDevApp } from "fresh/dev";
|
||||
import { app } from "./main.ts";
|
||||
|
||||
const devApp = new FreshDevApp();
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
".": "./src/mod.ts"
|
||||
},
|
||||
"imports": {
|
||||
"@fresh/core": "jsr:@fresh/core@^2.0.0-alpha.1",
|
||||
"fresh": "jsr:@fresh/core@^2.0.0-alpha.1",
|
||||
"@std/path": "jsr:@std/path@^0.221.0",
|
||||
"autoprefixer": "npm:autoprefixer@10.4.17",
|
||||
"cssnano": "npm:cssnano@6.0.3",
|
||||
|
||||
@@ -4,7 +4,7 @@ import cssnano from "cssnano";
|
||||
import autoprefixer from "autoprefixer";
|
||||
import * as path from "@std/path";
|
||||
import type { TailwindPluginOptions } from "./types.ts";
|
||||
import type { ResolvedFreshConfig } from "@fresh/core";
|
||||
import type { ResolvedFreshConfig } from "fresh";
|
||||
|
||||
const CONFIG_EXTENSIONS = ["ts", "js", "mjs"];
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { TailwindPluginOptions } from "./types.ts";
|
||||
import { initTailwind } from "./compiler.ts";
|
||||
import type { Builder } from "@fresh/core/dev";
|
||||
import type { App } from "@fresh/core";
|
||||
import type { Builder } from "fresh/dev";
|
||||
import type { App } from "fresh";
|
||||
|
||||
export function tailwind<T>(
|
||||
builder: Builder,
|
||||
|
||||
Reference in New Issue
Block a user