How to avoid having a fat start/hooks.js file?


I have extended the Validator provider with a large number of rules.
Now my start/hooks.js file is as long as a giraffe.
Is there a way to spread my rules somewhere else and call them from start/hooks.js to make the later one look shorter?



Create more files and require them inside start/hooks.js file

1 Like