
Security News
Suno Breached via Shai-Hulud Worm, Leaked Code Exposes AI Music Scraping
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.
icon-loader
Advanced tools
I feel stupid for creating yet another font loader, but here it is.
I wanted a font loader to:
Apparently, you can only choose two.
Install this loader and fontmin:
$ npm install --save-dev icon-loader fontmin
Hook it up somewhere in your webpack config:
// webpack config
{
test: /\.(eot|ttf|woff2?)(\?.*)?$/,
use: [ 'file-loader', 'icon-loader' ] // or url-loader
}
Import your font and use the glyphs= query option to select the glyphs to extract from your font.
In SCSS you can of course build your list of glyphs programmatically as well.
Here's an example for Font Awesome:
@import '~font-awesome/scss/_variables.scss';
/* the glyph= query parameter is used by the loader to determine which glyphs to extract */
/* $fa-font-path and $fa-var-meh-o are variables defined by font-awesome */
$fa-font-path: '~font-awesome/fonts';
$fa-font-query: 'v=#{$fa-version}&glyphs=#{unquote($fa-var-meh-o)}';
@font-face {
font-family: 'FontAwesome';
src: url('#{$fa-font-path}/fontawesome-webfont.eot?#{$fa-font-query}');
src: url('#{$fa-font-path}/fontawesome-webfont.eot?#{$fa-font-query}') format('embedded-opentype'),
url('#{$fa-font-path}/fontawesome-webfont.woff?#{$fa-font-query}') format('woff'),
url('#{$fa-font-path}/fontawesome-webfont.ttf?#{$fa-font-query}') format('truetype');
font-weight: normal;
font-style: normal;
}
@import '~font-awesome/scss/_mixins.scss';
@import '~font-awesome/scss/_core.scss';
MIT and stuff
FAQs
I feel stupid for creating yet another font loader, but here it is.
The npm package icon-loader receives a total of 5 weekly downloads. As such, icon-loader popularity was classified as not popular.
We found that icon-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.

Security News
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.