question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Regression: Not possible to provide array of source paths for icon generation

See original GitHub issue

I’m submitting a…


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

Current behavior

You are not allowed to provide an array of source paths for icon generation, it was possible before your own svg-generator.

Expected behavior

You can provide an array of source paths for icons.

Minimal repoduction

old:

"svg-to-ts": {
    "conversionType": "object",
    "srcFiles": [   
      "./src/assets/svg/*.svg" ,
     "./node_modules/some_lib/assets/svg/*.svg"
    ],
    "outputDirectory": "./src/assets/svg",
    "fileName": "svg-icons",
    "svgoConfig": {
      "plugins": [
        {
          "removeDimensions": true,
          "cleanupAttrs": true
        }
      ]
    }
  }

new:

"svgGenerator": {
    "outputPath": "./src/app/svg",
    "prefix": "app",
    "srcPath": "./src/assets/svg", // Array will throw error
    "svgoConfig": {
      "plugins": [
        {
          "removeDimensions": true,
          "cleanupAttrs": true
        }
      ]
    }
  }

What is the motivation/use case for changing the behavior?

For example generation of icons from node_modules and project assets.

Environment

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
NetanelBasalcommented, Oct 22, 2021

Yes

0reactions
NetanelBasalcommented, Oct 25, 2021

You can add a nameNormalizer function that returns a modified name if you want.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Predicting numerical values with regression - Elastic
An introduction to machine learning regression, which enables you to predict numerical values in a data set.
Read more >
React Native - Image Require Module using Dynamic Names
I am creating a local "data" file in my app and I needed to access the images. I have tried <Image source={require(item.img)} />...
Read more >
Building a regression model in Spotfire
From the menu, click Tools > Regression Modeling. · Provide a suitable name and descriptive comment for the model. · From the Model...
Read more >
Linear regression analysis in Excel - Ablebits
The tutorial explains the basics of regression analysis and shows how to do linear regression in Excel with Analysis ToolPak and formulas.
Read more >
Deploy machine learning models to online endpoints - Azure ...
Learn how to use an online endpoint to deploy your model, so you don't have to create and manage the underlying infrastructure.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found