Categories
property ImportMapHooks.generate:before

Runs before the filesystem is scanned. Build pattern targets here so they exist when patterns expand.

Examples

Example 1

const onBefore = (ctx) => console.log('building targets under', ctx.root);

Type

(context: HookContext) => void | Promise<void>