Giter Site home page Giter Site logo

Comments (16)

alexander-akait avatar alexander-akait commented on May 31, 2024 1

@yamaha252 found bug thanks! Start to doing patch!

from webfont.

yamaha252 avatar yamaha252 commented on May 31, 2024 1

Great! It works perfectly now! Thanks a lot!

from webfont.

alexander-akait avatar alexander-akait commented on May 31, 2024

@yamaha252 thanks for feedback!
try webfont "src/assets/images/icons/*.svg" --config ".webfontrc" -d "src/assets/icons"

from webfont.

yamaha252 avatar yamaha252 commented on May 31, 2024

Thanks! But, I had an error again

webfont "src/assets/images/icons/*.svg" --config ".webfontrc" -d "src/assets/icons"
TypeError: Path must be a string. Received null
    at assertPath (path.js:7:11)
    at Object.resolve (path.js:1146:7)
    at /Users/yamaha/.nvm/versions/node/v6.10.2/lib/node_modules/webfont/dist/standalone.js:161:55

.webfontrc

{
  "template": "scss"
}

from webfont.

alexander-akait avatar alexander-akait commented on May 31, 2024

@yamaha252 very strange webfont can't find template, can you create minimal repo with reproduce this?

from webfont.

yamaha252 avatar yamaha252 commented on May 31, 2024

Done: https://github.com/yamaha252/webfont-config

from webfont.

alexander-akait avatar alexander-akait commented on May 31, 2024

@yamaha252 thanks in near time i investigate this 👍

from webfont.

alexander-akait avatar alexander-akait commented on May 31, 2024

@yamaha252 try to new version https://github.com/itgalaxy/webfont/releases/tag/7.1.2

from webfont.

yamaha252 avatar yamaha252 commented on May 31, 2024

I updated the package to 7.1.2 in my minimal repo and got the same error:

webfont 'src/*.svg' --config '.webfontrc' -d 'dest/'
TypeError: Path must be a string. Received null
    at assertPath (path.js:7:11)
    at Object.resolve (path.js:1146:7)
    at /Users/yamaha/.nvm/versions/node/v6.10.2/lib/node_modules/webfont/dist/standalone.js:161:55

from webfont.

yamaha252 avatar yamaha252 commented on May 31, 2024

I think the problem was not with 'template' param in a config. It seems can't process --config cli param correctly

from webfont.

alexander-akait avatar alexander-akait commented on May 31, 2024

@yamaha252 thanks try to investagate

from webfont.

alexander-akait avatar alexander-akait commented on May 31, 2024

@yamaha252 very strange i now try to use your example command and all work as expected, do you provide more information, maybe your don't update webfont (try npm install webfont)?

from webfont.

yamaha252 avatar yamaha252 commented on May 31, 2024

Oh, @evilebottnawi, I'm sorry. You're right. I've forgotten to update my global webfont package :)
It works correctly now

from webfont.

yamaha252 avatar yamaha252 commented on May 31, 2024

One more question. I read in the readmy:

If no `--config` argument is provided, webfont will search for
                                     configuration  files in the following places, in this order:
                                         - a `webfont` property in `package.json`
                                         - a `.webfontrc` file (with or without filename extension:
                                             `.json`, `.yaml`, and `.js` are available)
                                         - a `webfont.config.js` file exporting a JS object

I have .webfontrc file and run webfont without --config param however the package do not apply my config. Is it ok?

from webfont.

alexander-akait avatar alexander-akait commented on May 31, 2024

@yamaha252 should search, investigating 👍

from webfont.

alexander-akait avatar alexander-akait commented on May 31, 2024

@yamaha252 try https://github.com/itgalaxy/webfont/releases/tag/7.1.3

from webfont.

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.