Skip to content

v0.1 has been published!

bash
$ yarn add zely@latest
$ yarn add zely@latest

In v0.1 we added what plugins can do! This update is for support of the extended version of zely currently under development.

plugin.config

Now plugins can directly edit settings!

ts
export function plugin() {
  return {
    name: 'awesome-plugin',
    config(config) {
      config.prebuild = true;
    },
  };
}
export function plugin() {
  return {
    name: 'awesome-plugin',
    config(config) {
      config.prebuild = true;
    },
  };
}

This function runs before the server starts. However, server-affecting values (​such as port) do not take effect yet.

plugin.build

This function will be executed before build.