Documentation
    Preparing search index...

    Hooks executed when the production build is created.

    const bundlerHooks: BundlerHooks = {
    buildStarting: [
    () => import('./hooks/before_build')
    ],
    buildFinished: [
    () => import('./hooks/after_build')
    ]
    }
    type BundlerHooks = {
        buildStarting: LazyImport<(server: Bundler) => AsyncOrSync<void>>[];
        buildFinished: LazyImport<
            (server: Bundler, uiInstructions: Instructions) => AsyncOrSync<void>,
        >[];
    }
    Index

    Properties

    buildStarting: LazyImport<(server: Bundler) => AsyncOrSync<void>>[]

    The hook is executed before we begin creating the production build. Use this hook to perform pre-build tasks like asset optimization.

    The Bundler instance that will create the build

    buildFinished: LazyImport<
        (server: Bundler, uiInstructions: Instructions) => AsyncOrSync<void>,
    >[]

    The hook is executed after the production build has been created. Use this hook to perform post-build tasks or display build statistics.

    The Bundler instance that created the build

    UI instructions for displaying build information