Giter Site home page Giter Site logo

Comments (4)

kreuzerk avatar kreuzerk commented on September 25, 2024

Hi @marco-martins thanks for bringing this up.
What's the use case for this?

Also, where would the data come from - I guess you would pass it to svg-to-ts. Would each icon need to get specific data or would the passed data be the same for all icons?

from svg-to-ts.

kreuzerk avatar kreuzerk commented on September 25, 2024

@marco-martins any news on that?

from svg-to-ts.

marco-martins avatar marco-martins commented on September 25, 2024

Hi @kreuzerk It was a long time ago, but I think on the time, my need it was to send specific data to a specific icon.
Basically, I had a folder with a big number of icons and I did a script to generates all, some of the icons I would like the prefix to be las (solid icons), lar (regular icons) and lab (brand icons). The idea was to send that prefix as a parameter, but could be useful to other thinks also.

I find out another way to do it without sending the prefix, I created 3 different folders to do that.
https://github.com/marco-martins/angular-line-awesome/blob/master/extract-icons.js

from svg-to-ts.

kreuzerk avatar kreuzerk commented on September 25, 2024

Hi @marco-martins thanks a lot for your answer. I now see your use case.
In version 5.3 we introduced the possibility to add a --config flag to specify a path to a configuration file. With this flag you should be able to create multiple configurations (for example for solid, regular and brand icons).

Since this problem can be solved with the config flag I will close this issue for now. Let me know if you need further support.

from svg-to-ts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.