Required module for use in the entire project
Using the quasar framework, is it possible to require a module only once and have it accessible throughout the project?
This is because I am creating a debug logger module. I do not want the user to re-configure it after every require on every file.
metalsadman last edited by
@keechan register it in a boot file https://quasar.dev/quasar-cli/boot-files#Anatomy-of-a-boot-file. if you also register it as a Vue prototype then you can call it directly in your components, ie.
@metalsadman Great, this is exactly what I was looking for! Thanks man!