Many companies have multiple portals, and having them share common code is certainly the scenario we’d prefer, so what are the challenges to sharing code between Nuxt projects?

Normally shared code is in the form of an npm package with importable components, and that can be done with Nuxt, but the thing about Nuxt is that it offers some lovely features that are exclusively tied to its directory structure, and it only allows for one such structure.

What if we want to share pages, layouts or components between projects? Let’s setup a sample project and walk through some ways to do that.

#nuxtjs #javascript #vuejs #nuxt

How to Share Code Between NuxtJS Projects?
8.25 GEEK