Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build hooks #54

Open
shailen-naidoo opened this issue Feb 15, 2020 · 0 comments
Open

Build hooks #54

shailen-naidoo opened this issue Feb 15, 2020 · 0 comments

Comments

@shailen-naidoo
Copy link
Collaborator

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) => {
};
@shailen-naidoo shailen-naidoo added this to 💡 Ideas in Hydrogen Development Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Hydrogen Development
  
💡 Ideas
Development

No branches or pull requests

1 participant