Installation
Install Sage using Composer from your WordPress themes directory:
$ composer create-project roots/sage your-theme-name
To install the latest development version of Sage, add dev-main
to the end of the command:
$ composer create-project roots/sage your-theme-name dev-main
Build assets
You must build theme assets in order to access your site. Failing to build the assets will result in the error:
Vite manifest not found at [/path/to/sage/public/build/manifest.json] cannot be found.
Running the first build
- Run
npm install
from the theme directory to install dependencies - Update
vite.config.js
with your local dev URL -
npm run build
— Compile assets
Contributors
Last updated
Support Roots
Help us continue to build and maintain our open source projects. We’re a small team of independent developers and every little bit helps.
Sponsor Roots on GitHub