Production Build
Recommended Settings
In src/site.json, set production-appropriate values:
{
"build": { "minify": true, "debug": false },
"identity": { "url": "https://yourdomain.com" }
}Commands
npm run buildOptional artifact packaging:
tar -czf dist.tar.gz distWhat the Build Produces
The build pipeline executes these stages:
- Clean and recreate
dist/ - Run
dist:cleanplugin hook (e.g., robots.txt) - Copy static assets from
src/assets/ - Run
assets:copyplugin hook (CSS/JS compilation) - Load and parse Markdown content
- Run
content:loadhook (external content injection) - Build collections, menus, and indices
- Run
content:readyhook (RSS, sitemap generation) - Render all pages with Mustache templates
- Minify HTML output
- Flush pages and apply output aliases
Output Verification
Check that:
- HTML pages exist at expected language/slug paths.
- Canonical URLs reflect your production domain.
- All enabled plugin outputs exist (
robots.txt,sitemap.xml,feed.xml). - CSS and JS bundles are minified.