fix: plugins not loaded with legacy dev (#1764)

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
This commit is contained in:
Tomofumi Chiba
2023-09-13 16:09:50 +02:00
committed by GitHub
co-authored by Marvin Hagemeister
parent 42dc54500c
commit ec2f785455
14 changed files with 149 additions and 10 deletions
+4
View File
@@ -0,0 +1,4 @@
import { dev } from "$fresh/src/dev/dev_command.ts";
import config from "./fresh.config.ts";
await dev(import.meta.url, "./main.ts", config);
+8
View File
@@ -0,0 +1,8 @@
import { defineConfig } from "$fresh/server.ts";
import twind from "$fresh/plugins/twind.ts";
export default defineConfig({
plugins: [twind({
selfURL: import.meta.url,
})],
});
+15
View File
@@ -0,0 +1,15 @@
// DO NOT EDIT. This file is generated by Fresh.
// This file SHOULD be checked into source version control.
// This file is automatically updated during development when running `dev.ts`.
import * as $0 from "./routes/index.tsx";
const manifest = {
routes: {
"./routes/index.tsx": $0,
},
islands: {},
baseUrl: import.meta.url,
};
export default manifest;
+11
View File
@@ -0,0 +1,11 @@
/// <reference no-default-lib="true" />
/// <reference lib="dom" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
/// <reference lib="deno.ns" />
import { start } from "$fresh/server.ts";
import manifest from "./fresh.gen.ts";
import config from "./fresh.config.ts";
await start(manifest, config);
@@ -0,0 +1,3 @@
export default function Page() {
return <h1 class="text-red-600">check color</h1>;
}