Skip to main content

Installation

First install the module using your favorite package manager, in this example I am using NPM

npm install @constcss/react # for React
npm install @constcss/solid # for SolidJS

Enable the plugin for your bundler

Since all the 'heavy-work' is done at build-time, you need to enable the plugin for your bundler. In this example I am using Parcel, but "SOON" the same applies for Webpack, Rollup, etc.

Parcel

{
"extends": [..., "@constcss/parcel-config"]
}

Rollup

// TODO

Webpack

// TODO