Open Siilwyn opened 8 months ago
With a the srcDir set in Nuxt the module won't find the icons and writes output to the default 'root' directory.
srcDir
So with:
export default defineNuxtConfig({ srcDir: "src", modules: [ '@nuxtjs/svg-sprite', ], });
Expected would be reading and writing icons from/to: ./src/assets/sprite/ but instead an empty gen is written to ./assets/sprite/.
./src/assets/sprite/
gen
./assets/sprite/
I've tried some combinations of custom input & output, but couldn't find a working workaround sadly...
input
output
Found a workaround just now:
svgSprite: { input: '~/src/assets/sprite/svg', }
And then use a symbolic symlink from assets/sprite/gen to src/assets/sprite/gen.
assets/sprite/gen
src/assets/sprite/gen
With a the
srcDir
set in Nuxt the module won't find the icons and writes output to the default 'root' directory.So with:
Expected would be reading and writing icons from/to:
./src/assets/sprite/
but instead an emptygen
is written to./assets/sprite/
.I've tried some combinations of custom
input
&output
, but couldn't find a working workaround sadly...