Compile CSS as a programming language.
- Getting Started - Learn how to get started with CSSX.
- Reference - Learn about the CSSX syntax and features.
Write your CSS in .cssx files in src/pages
directory. Then run the following commands:
npx cssx-build
-
--output
- Output directory for compiled CSS files. Default isdist
. -
--watch
- Watch for changes in thesrc
directory and compile CSSX files to CSS. -
--serve
- Serve the compiled CSS files on a local server.
├── dist
└── index.html
└── src
└── pages
└── index.cssx
This will compile your CSSX files to CSS in the dist
directory.