Installation
It is plumeria's installation, compilation, integration setup
Runtime
At this point you can start writing your styles.
If you like plumeria's runtime, such as hot reloading, You can set up the compiler in stages.
Compiler
-
npx css
compiles without type checking. -
argument
--type-check
The will include compilation check. -
arugment
--view
See the CSS log that is output during compilation. -
argument
--paths
See the compile target paths list is output during compilation.
Integration with build
Next.js recommends generating SSR CSS by compiling with next dev.
In Vite, only the client is referenced, so there is no need to compile at the same time as dev.
Static Stylesheet
- Applying a Style Sheet: import
@plumeria/core/stylesheet
in your application entry point.
Next.js
You can statically preview a Next.js's ServerComponent using <ServerCSS \>
.
This ServerCSS is a headless component and is not included in the production environment.
Vite
It will display warnings and errors when it is possible to execute the command, but by installing a plugin you can externalize Node.js smartly.