Back to Bit

Generate Asset Manifest.Docs

components/modules/generate-asset-manifest/generate-asset-manifest.docs.mdx

14.8.9-server.1472 B
Original Source

Produces a CRA-compatible asset-manifest.json with files (all emitted assets) and entrypoints (main entry assets, excluding source maps).

Pass directly as the generate option of rspack-manifest-plugin:

ts
import { RspackManifestPlugin } from 'rspack-manifest-plugin';
import { generateAssetManifest } from '@teambit/rspack.modules.generate-asset-manifest';

new RspackManifestPlugin({ fileName: 'asset-manifest.json', generate: generateAssetManifest });