An async render hook is added to plugins that enables injecting stylesheets and scripts based on the rendered HTML text.
13 lines
360 B
TypeScript
13 lines
360 B
TypeScript
import { FreshOptions } from "$fresh/server.ts";
|
|
import cssInjectPlugin from "./utils/css-inject-plugin.ts";
|
|
import jsInjectPlugin from "./utils/js-inject-plugin.ts";
|
|
import cssInjectPluginAsync from "./utils/css-inject-plugin-async.ts";
|
|
|
|
export default {
|
|
plugins: [
|
|
cssInjectPlugin,
|
|
jsInjectPlugin,
|
|
cssInjectPluginAsync,
|
|
],
|
|
} as FreshOptions;
|