Web Manifest Plugin
A staticbolt plugin that loads your web app manifest and writes it to a configurable path in the output directory.
Installation
The plugin ships as part of @staticbolt/core. You do not need to install anything else.
Usage
In your .staticbolt.ts configuration file:
import { defineConfig } from "@staticbolt/core";import { webManifestPlugin } from "@staticbolt/core/plugins";
export default defineConfig({ plugins: [webManifestPlugin()],});By default the plugin reads sources/assets/manifest.json and writes it to manifest.json in the output directory. It updates relative references to the original manifest path for you.
Plugin Options
manifestPath
- Type:
string - Default:
"./sources/assets/manifest.json"
The path to the manifest file, relative to the project root.
outfile
- Type:
string - Default:
"./manifest.json"
The output path for the manifest file, relative to the build output directory.
webManifestPlugin({ manifestPath: "./src/manifest.json", outfile: "./assets/manifest.json",});