A Vite plugin for Linaria, like @linaria/webpack-loader
๐ Please refer to the GitHub for full linaria documentation.
npm install vite-plugin-linaria-styled
or
yarn add vite-plugin-linaria-styled
import linaria from 'vite-plugin-linaria-styled';
export default defineConfig({
plugins: [
linaria({
sourceMap: true,
cacheDirectory: '.linaria-cache',
extension: '.linaria.css',
}),
]
})