A practical guide on packaging custom font files into an npm package and consuming them in Angular CLI projects. Covers setting up a dedicated assets npm package with font files and CSS @font-face declarations, configuring angular.json to copy fonts from node_modules to the assets directory, and importing the CSS into an Angular app. Also includes a SCSS mixin approach for non-Angular projects with a configurable base path.

5m read timeFrom playfulprogramming.com
Post cover image
Table of contents
Post contentsConsider supporting

Sort: