Comments (16)
@yamaha252 found bug thanks! Start to doing patch!
from webfont.
Great! It works perfectly now! Thanks a lot!
from webfont.
@yamaha252 thanks for feedback!
try webfont "src/assets/images/icons/*.svg" --config ".webfontrc" -d "src/assets/icons"
from webfont.
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.
@yamaha252 very strange webfont
can't find template, can you create minimal repo with reproduce this?
from webfont.
Done: https://github.com/yamaha252/webfont-config
from webfont.
@yamaha252 thanks in near time i investigate this 👍
from webfont.
@yamaha252 try to new version https://github.com/itgalaxy/webfont/releases/tag/7.1.2
from webfont.
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.
I think the problem was not with 'template' param in a config. It seems can't process --config cli param correctly
from webfont.
@yamaha252 thanks try to investagate
from webfont.
@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.
Oh, @evilebottnawi, I'm sorry. You're right. I've forgotten to update my global webfont package :)
It works correctly now
from webfont.
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.
@yamaha252 should search, investigating 👍
from webfont.
@yamaha252 try https://github.com/itgalaxy/webfont/releases/tag/7.1.3
from webfont.
Related Issues (20)
- Not generating font. HOT 1
- generate data:application/x-font-woff;charset=utf-8;base64,... URL style in templates HOT 1
- Wrong filename in template.njk if fontName and templateFontName configured
- NPM audit fail due to vulnerable dependency on svg2ttf HOT 2
- add browser compatability HOT 5
- Incomplete after compilation HOT 1
- Support of ligatures should be configurable
- Globby now uses ESM HOT 5
- Cannot use import statement outside a module HOT 7
- Error when passing path to javascript config file via '--config' flag HOT 1
- Auditing webfont reveals moderate vulnerability in xmldom HOT 6
- Cannot read property 'dirname' of undefined HOT 2
- Extreme slowdown on fonts generated by `webfont` HOT 1
- please synchronize versions in npm registry, releases and tags page
- CLI round parameter is passed as a string in SVGPathData (Bug)
- Update cosmiconfig module to latest upstream release HOT 1
- svgicon2svgfont.log not implemented
- Is this still maintained?
- 如何让webfont支持transform属性
- TypeError: webfont is not a function HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webfont.