Plumeria logoPlumeria

CLI

It is the plumeria Compiler @plumeria/compiler package.
A Rust-based compiler with static extraction in the style of Plumeria.

Installation

Terminal
npm i --save-dev @plumeria/compiler
Terminal
yarn add -D @plumeria/compiler
Terminal
pnpm i --save-dev @plumeria/compiler

Overview

Terminal
npx css
Terminal
pnpm css

Success

Terminal
 extract... 

Usage

json
  "scripts": {
    "dev": "css & next dev",
    "build": "plumerialint && css && next build",
  }

Options

--view

Use it to visualize your builds and test them as you go.
Do not include the --view argument in your build script as it will get into the server logs.

Terminal
pnpm css --view

Example:

Terminal

 extract...

.x1dc3zs0 { color: orange; }

────────────────────────────────────────────────────────────

 extract...

.x13vu618 { color: pink; }
@media (max-width: 1024px) { .x15qdpgc:not(#\#) { color: aqua; } }

────────────────────────────────────────────────────────────

 extract...

.x1x6w4y4:not(#\#) { font-size: 14px; }

────────────────────────────────────────────────────────────

 extract...

.x1f4cjxk { color: green; }

────────────────────────────────────────────────────────────

--paths

Outputs a list of the files to be compiled. file.

Terminal
pnpm exec css --paths

Example:

Terminal
✅: project/src/component/CodeBlock.tsx
✅: project/src/component/HomeComponent.tsx
✅: project/src/component/Plumeria.tsx

--stats

Terminal
pnpm exec css --stats

Example:

Terminal
📦 Plumeria CSS Stats
────────────────────────────
Total CSS size:           3.611 KB
Rules:                    82
Top properties:
  - width: 9
  - top: 8
  - right: 6
  - margin-top: 5
  - height: 5
Build time:               0.08s
────────────────────────────

On this page