nivekcode / svg-to-ts

Build performant SVG icon libraries by converting raw SVG files to TypeScript that is optimized for modern tree shaking mechanisms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Script adds additional space in filename.

fstodulski opened this issue · comments

Script adds additional space in filename between prefix and icon's filename.
image

Config:


"svg-to-ts": {
    "generateType": "true",
    "delimiter": "KEBAB",
    "conversionType": "files",
    "iconsFolderName": "svg",
    "prefix": "app",
    "srcFiles": [
      "./libs/tetrisly/src/assets/svg/**/*.svg"
    ],
    "outputDirectory": "./libs/tetrisly/src/lib/icons/svg-compiled",
    "svgoConfig": {
      "plugins": [
        {
          "removeDimensions": true,
          "cleanupAttrs": true
        }
      ]
    }
  }
  
commented

Hi, @fstodulski thanks for reporting this issue.

I tried to reproduce this issue with your configuration in a new starter project. I also tried to reproduce it in svg-to-ts itself. Unfortunately, I couldn't reproduce it. Also svg-to-ts is used across multiple organizations and we never encountered this issue. I guess there must be something wrong with your raw svg-icons or something else. Do you have a reproduction project?