Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

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
    }
}