Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 790 Bytes

File metadata and controls

45 lines (35 loc) · 790 Bytes

Bundler Report Plugin

A very basic report on the currently used bundler.
It is useful to unify some configurations.

Global Context

{
    bundler: {
        name: string;
        outDir: string;
        rawConfig?: any;
    };
}

Hooks

bundlerReport

This hook is called when the bundler report is generated.
It is useful to get the current bundler's configuration for instance.

{
    name: 'my-plugin',
    bundlerReport(report: BundlerReport) {
        // Do something with the data
    }
}

buildRoot

This hook is called when the build root directory is computed.

{
    name: 'my-plugin',
    buildRoot(buildRoot: string) {
        // Do something with the data
    }
}