mirror of
https://git.mills.io/prologic/zs
synced 2025-04-09 12:02:03 +00:00
Document posthook requirements and behavior
This commit is contained in:
parent
92b387d910
commit
2cc4f25a09
1 changed files with 3 additions and 2 deletions
|
@ -220,12 +220,13 @@ Looking for more plugins? Check out the [contrib/plugins](https://git.mills.io/p
|
||||||
|
|
||||||
## Hooks
|
## Hooks
|
||||||
|
|
||||||
There are two special plugin names that are executed every time the build
|
There are two special plugin names that are executed every time the build happens:
|
||||||
happens:
|
|
||||||
|
|
||||||
- `prehook` -- executed before the build
|
- `prehook` -- executed before the build
|
||||||
- `posthook` -- executed after the build
|
- `posthook` -- executed after the build
|
||||||
|
|
||||||
|
You must have `prehook` for `posthook` to work correctly, and `posthook` will only run if a file has been modified.
|
||||||
|
|
||||||
You can use these to customize the build before and after. For example you can use the `posthook` to minify CSS or Javascript files.
|
You can use these to customize the build before and after. For example you can use the `posthook` to minify CSS or Javascript files.
|
||||||
|
|
||||||
`.zs/posthook`:
|
`.zs/posthook`:
|
||||||
|
|
Loading…
Add table
Reference in a new issue