ngneat / svg-icon

👻 A lightweight library that makes it easier to use SVG icons in your Angular Application
https://netbasal.com
MIT License
257 stars 35 forks source link

Svg generator with folders not work properly #131

Open DenDiem opened 1 year ago

DenDiem commented 1 year ago

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ x] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

In version 2.0 i can have folders inside folders and all work fine - in 6.0 version a got error and incorected file path and index. In the image this is index.ts in the "root" forlder

image

Expected behavior

all work like in version 2.0 ( folders inside folder not create additional rows in main index.ts file - all are separately

Minimal reproduction of the problem with instructions

  "svgGenerator": {
    "outputPath": "./src/app/utils/svg",
    "prefix": "fms",
    "srcPath": "./src/assets/svg",
    "rootBarrelFile": false,
    "svgoConfig": {
      "plugins": [
        "removeDimensions",
        "cleanupNumericValues",
        "reusePaths",
        {
          "name": "convertColors",
          "params": {
            "currentColor": true
          }
        }
      ]
    }
  }

Environment


Angular version: 13.1.2
"@ngneat/svg-generator": "^6.0.0",


For Tooling issues:
- Node version: v18.15.0
- Platform:  Windows