Skip to main content
Build manifests map source files to their output files with content hashes. They enable proper asset loading, module preloading, and template integration.

What is a Build Manifest?

When Vite or Webpack builds your app, it creates a manifest file:
This maps src/main.tsxassets/main.abc123.js.

Configuration

Loading a Manifest

Manifest API

Entry Points

Get the output file for an entry:

Assets

Get the URL for an asset:

CSS Files

Get CSS files for an entry:

Preloads

Get module preloads:

Template Integration

View Helpers

In Go Templates

Outputs:

Manual Tag Generation

Script Tag

CSS Tags

Preload Tags

Entry Tags (All in One)

Vite Manifest Format

Vite creates .vite/manifest.json:

Webpack Manifest Format

Webpack creates a simpler manifest:
Both formats work with Mizu’s manifest loader.

Benefits

1. Correct Asset Loading

Always load the correct hashed file:

2. Module Preloading

Improve performance by preloading dependencies:
Browser loads dependencies in parallel.

3. CSS Extraction

Automatically include CSS:

Next Steps

Caching

Caching strategies

Production

Production optimization