vite-css-inject

install

pnpm add -D @itsy/vite-css-inject

use

import { defineConfig } from 'vite'
import InjectCSS from '@itsy/vite-css-inject'

export default defineConfig({
  plugins: [InjectCSS()]
})

InjectCSS will only run during build-time, not in dev mode.

GitHub

View Github