Skip to content

Support "custom" srcDir #307

@Siilwyn

Description

@Siilwyn

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/.

I've tried some combinations of custom input & output, but couldn't find a working workaround sadly...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions