@csslit/vite-plugin
v0.0.13
Published
Vite plugin for compile-time csslit styles.
Readme
@csslit/vite-plugin
The Vite plugin for compile-time csslit styles.
import { defineConfig } from "vite";
import csslit from "@csslit/vite-plugin";
export default defineConfig({
plugins: [csslit()],
});For files lowered to JavaScript or TypeScript by another Vite plugin, map their extension to the parser source type csslit should use:
csslit({ moduleType: { ".tsrx": "tsx" } });The built-in mappings for .js, .jsx, .ts, and .tsx are used by default.
See the project README for installation and usage.
