/vite-plugin-linaria-css

A vite plugin for linaria

Primary LanguageTypeScript

vite-plugin-linaria-styled

A Vite plugin for Linaria, like @linaria/webpack-loader

📖 Please refer to the GitHub for full linaria documentation.

Installation

npm install vite-plugin-linaria-styled

or

yarn add vite-plugin-linaria-styled

Simple Configure

import linaria from 'vite-plugin-linaria-styled';
export default defineConfig({
  plugins: [
    linaria({
      sourceMap: true,
      cacheDirectory: '.linaria-cache',
      extension: '.linaria.css',
    }),
  ]
})