feat: add initial plugin support (#512)
This commit adds initial support for fresh "plugins". These are bundles of functionality that can be added to a fresh plugin through a simple addition in the `main.ts` file. Right now plugins are only able to hook into the render steps. This means that they can inject styling and scripts. They can not yet hook into routing. Things that I think should be possible now: - styling integrations for twind, unocss, and probably a few other tools Things that are not possible yet: - google analytics middleware - database connectors - CMS connectors The routing additions to plugins can be added in a follow-up though.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// 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/static.tsx";
|
||||
import * as $1 from "./routes/with-island.tsx";
|
||||
import * as $$0 from "./islands/Island.tsx";
|
||||
|
||||
const manifest = {
|
||||
routes: {
|
||||
"./routes/static.tsx": $0,
|
||||
"./routes/with-island.tsx": $1,
|
||||
},
|
||||
islands: {
|
||||
"./islands/Island.tsx": $$0,
|
||||
},
|
||||
baseUrl: import.meta.url,
|
||||
};
|
||||
|
||||
export default manifest;
|
||||
Reference in New Issue
Block a user