Skip to main content

Build System

yarn​

The preferred package manager for JavaScript assets is Yarn.

Installing dependencies​

$ yarn install

Vite​

The preferred build system for CTFd themes is Vite.

Building with Vite​

$ vite build
$ vite build --watch

The commands above are defined in package.json right out of the box.

"scripts": {
"dev": "vite build --watch",
"build": "vite build"
}

You can call them via Yarn with the following:

$ yarn build
$ yarn dev

Was this page helpful?