The webfont-builder
package is a simple script which purpose is to help build Web Fonts so they can be easily self-hosted in production-grade applications.
Install webfont-builder
in the font package:
npm install -D webfont-builder
Include the binary in your build
script:
{
...
"scripts": {
"start": "webfont-builder",
...
},
...
}
Build the font:
npm start
- JavaScript
Install dependencies:
npm install
Publish to npm
:
npm publish