A Vite plugin for linaria using vite virtual files for development
node version: >=12.0.0
vite version: >=2.0.0
yarn add vite-plugin-linaria -D
or
npm i vite-plugin-linaria -D
- Add plugin in vite.config
// vite.config.js
import VitePluginLinaria from 'vite-plugin-linaria'
export default {
plugins: [
// other plugins
VitePluginLinaria()
],
}
MIT