esbuild-metadata-report
Metadata Report for esbuild
![](https://img.shields.io/github/license/cenfun/esbuild-metadata-report)
Preview
Install
npm i esbuild-metadata-report
Usage
const metadataReport = require('esbuild-metadata-report');
await esbuild.build({
metafile: true,
plugins: [
metadataReport({
name: 'Metadata Report',
outputFile: './metadata-reports/index.html'
})
]
});
const metadataReport = require('esbuild-metadata-report');
const res = await esbuild.build({
metafile: true
});
const htmlPath = metadataReport({
metadata: res.metafile,
name: 'Metadata Report',
outputFile: './metadata-reports/index.html'
});