davestewart / nuxt-layers-utils

A collection of utilities to work with Nuxt layers
71 stars 1 forks source link

useLayers with npm modules instead of relative local paths #4

Open DennisMaass opened 3 months ago

DennisMaass commented 3 months ago

Is there a way to use this with npm modules instead of relative local paths?

const layers = useLayers(__dirname, {
  core: 'core',
  blog: 'layers/blog',
  site: 'layers/site',
})

e.g.

const layers = useLayers(__dirname, {
  core: '@something/nuxt-core-components',
  blog: '@something/blog',
  site: '@something/site',
})
gianfrancopiana commented 1 month ago

@davestewart I would love to know too.