We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
srcDir
With a the srcDir set in Nuxt the module won't find the icons and writes output to the default 'root' directory.
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
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
fix: nuxt-modules#307, nuxt-modules#295, nuxt-modules#298, nuxt-modul…
13160f8
…es#294 and add option to change component name
Successfully merging a pull request may close this issue.
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...The text was updated successfully, but these errors were encountered: