Yamakasinge
How to get project directory in nuxt kit ?
Okay I think I found the issue.
I am trying to create a nuxt module 'mylib-nuxt'. I want 'mylib-nuxt' to expose 'mylib-styles' as an alias to 'mylib/styles/*.scss'.
The issue comes from the
resolvePath('mylib/styles')
which resolve to mylib/dist/node_modules/mylib
. I want the dist
part away. Maybe I should just use resolvePath('../mylib/styles')
?15 replies