1.1.3 • Published 1 year ago
vite-plugin-compiled-react v1.1.3
vite-plugin-compiled-react
Vite plugin for https://github.com/atlassian-labs/compiled
PostCSS config is supported when extraction is enabled.
CSS extraction can be enabled for build
and serve
separately.
extract: { build: true, serve: true }
or a shorthand extract: true
Your SSR framework may not support preloading extracted CSS in development mode.
Usage:
npm i @compiled/react
npm i -D vite-plugin-compiled-react
import { compiled } from "vite-plugin-compiled-react";
export default defineConfig({
plugins: [react(), compiled({ extract: true })],
});
const Component = () => (
<div
css={{
color: "red",
":hover": {
color: "blue",
},
}}
>
Hello
</div>
);
Typescript should work out of the box.
1.1.3
1 year ago
1.1.2
1 year ago
1.1.1
1 year ago
1.1.0
1 year ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
0.0.15
2 years ago
0.0.14
2 years ago
0.0.13
2 years ago
0.0.12
2 years ago
0.0.11
2 years ago
0.0.10
2 years ago