Getting started
Installation
It is plumeria's installation, compilation, integration setup
Runtime
If you are using Next.js, you need to configure next-plugin, and if you are using Vite, you need to configure vite-plugin. You can install the compiler in stages.
Compiler
-
npx css
use swc compile without type-check. -
argument
--type-check
The will include compilation type-check. -
arugment
--view
Display the CSS log that is output during compilation. -
argument
--paths
Display the compile target paths list is output during compilation.
Integration with build
Like Vite and Next, there is no need to compile at the same time as dev.
Static Stylesheet
- Applying a Style Sheet: import
@plumeria/core/stylesheet.css
in your application entry point.
Next.js
Plugin is compiling Server components style and Inject virtual CSS imports for HMR.