0.0.1 • Published 11 months ago

@hiogawa/vite-plugin-ssr-css v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

vite-plugin-ssr-css

This plugin provides virtual:ssr-css.css to collect styles reachable from entries.

When using ViteDevServer.transformIndexHtml, it will inject <link rel="stylesheet" href="/@id/__x00__virtual:ssr-css.css" /> to <head>.

This works only during development.

usage

import { defineConfig } from "vite";
import { vitePluginSsrCss } from "@hiogawa/vite-plugin-ssr-css";

export default defineConfig({
  plugins: [vitePluginSsrCss({ entries: ["/src/entry-client"] })],
});
0.0.1

11 months ago

0.0.0

1 year ago

0.0.0-pre.0

1 year ago