This theme use :
- Timber https://upstatement.com/timber/
- vite https://vitejs.dev/
- tailwind V2 https://tailwindcss.com/
- Timber plugin https://wordpress.org/plugins/timber-library/
Define environment variable :
define('WP_ENV', 'development'); // or production
Use or install node.js on your local machine.
This project use npm and node for compile assets.
For install dependencies :
npm install
For start development :
npm run dev
For build assets:
npm run build
For admin editor, a css file is generated on build.
Use the assets/css/editor.css
file for add style.
The command is run on build but you can generate separately:
npm run build:editor
or
npm run watch:editor
use /assets/image.jpg
instead of ./assets/image.jpg
Vite add a base path to asset on build.