hooks.js not getting generated? #12917
-
Beginner question here ... src/hooks.js is not getting auto-generated when I create a new sveltekit minimal project. Is this normal? From reading all of the documentation, it seems like it should be getting generated. No errors are thrown during project creation so I'm very confused. I've searched everywhere I can think of for an explanation and found nothing. Please help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Yes. There are many optional files that are not generated & hooks are an advanced thing that quite a few applications may not even need (they are also described in the "advanced" section of the docs). |
Beta Was this translation helpful? Give feedback.
-
Excellent! Thank you and much appreciated! |
Beta Was this translation helpful? Give feedback.
You just need to create the file in the right place.