Skip to content

Build hooks  #54

@shailen-naidoo

Description

@shailen-naidoo

The goal of Hydrogen is to be as flexible as possible to all users, I figured the best way to make it even more flexible is to add build hooks which would allow users to do just about anything they can think:

Here are a list of Hooks that I want to expose via a file called hydrogen.hooks.js

exports.beforeDistRemoved = async (ctx) => {
};

exports.afterDistRemoved = async (ctx) => {
};

exports.beforeBuild = async (ctx) => {
};

exports.afterBuild = async (ctx) => {
};

exports.beforeEachPage = async (ctx) => {
};

exports.afterEachPage = async (ctx) => {
};

exports.beforeServiceWorkerGenerated = async (ctx) => {
};

exports.afterServiceWorkerGenerated = async (ctx) => {
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions