vikejs / vike

🔨 Flexible, lean, community-driven, dependable, fast Vite-based frontend framework.
https://vike.dev
MIT License
3.88k stars 334 forks source link

New hook `onLog()` #1438

Open brillout opened 5 months ago

brillout commented 5 months ago

Enabling:

Other condiserations:

See also:

Instead of having three different hooks (onLog() / onClientLog() / onServerLog()), a consideration is to have +onLog.js / +onLog.server.js / +onLog.client.js. (The suffixes would automatically change the env of the + file.)

chrisvander commented 5 months ago

Sweet!!