Tasks that require use of node modules.
I need to generate menu for a Nuxt pages inside /pages/abc/ directory, what options do we have for that kind of task?
Edit: I'm talking about static generated friendly solution.
2 Replies
If i understand you correctly, you want to generate a Menu (component) that holds all available routes, thus reflects the pages/ directory recursively?
That's can be useful for that task, thanks.
But in general my question was where to run code that require use of node modules/file system, so far I found two solutions, nuxt hooks inside nuxt.config or a custom script that runs before nuxt.