0.0.1 • Published 5 years ago
vite-plugin-stitches v0.0.1
⚠️ EXPERIMENTAL - USE WITH CAUTION
Usage
Install the package via your favourite package manager:
npm i vite-plugin-stitchesExport
getCssStringfrom you Stitches config// your-stitches-config import { createCss } from "@stitches/core"; export const { getCssString } = createCss({ // your config });Import your
getCssStringintovite.config.jsand add toViteStitches():Note: in it's current iteration,
vite-plugin-stitchesdoesn't transpile ts/esm files for you. You'll need to do this manuallyimport { getCssString } from "your-stitches-config"; import ViteStitches from "vite-plugin-stitches"; export default defineConfig({ plugins: [ViteStitches({ getCssString })], });
0.0.1
5 years ago