# font-spider-webpack-plugin

> Font-spider webpack plugin

Latest version **1.0.2** (published 2022-01-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install font-spider-webpack-plugin
pnpm add font-spider-webpack-plugin
yarn add font-spider-webpack-plugin
bun add font-spider-webpack-plugin
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-01-27 |
| First published | 2022-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^12.20.0 \|\| ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 3 |
| Unpacked size | 31.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Eric Tian |
| Maintainers | tianxing0923 |
| Keywords | font-spider, webpack, plugin |

## Links

- npm: https://www.npmjs.com/package/font-spider-webpack-plugin
- Repository: https://github.com/tianxing0923/font-spider-webpack-plugin
- Homepage: https://github.com/tianxing0923/font-spider-webpack-plugin#readme
- Issues: https://github.com/tianxing0923/font-spider-webpack-plugin/issues
- npm.io page: https://npm.io/package/font-spider-webpack-plugin

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.10
- [schema-utils](https://npm.io/package/schema-utils.md) ^3.1.1

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2022-01-27
- 1.0.1 — 2022-01-27

## README

# font-spider-webpack-plugin

[![npm][npm]][npm-url]
[![node][node]][node-url]
[![tests][tests]][tests-url]

基于 [font-spider](https://github.com/aui/font-spider) 的 webpack 插件，支持 webpack v4 和 v5。

## 安装

```shell
npm install font-spider-webpack-plugin --save-dev
```

## 使用

```javascript
const FontSpiderPlugin = require('font-spider-webpack-plugin')

// 默认处理所有字体
module.exports = {
  plugins: [
    // ...
    new FontSpiderPlugin(),
  ],
}

// 只设置需要处理的字体
module.exports = {
  plugins: [
    // ...
    new FontSpiderPlugin({
      fonts: [],
      fontSpiderOptions: {},
    }),
  ],
}
```

## Options

|                     Name                      |      Type       | Default | Description         |
| :-------------------------------------------: | :-------------: | :-----: | :------------------ |
|             **[`fonts`](#fonts)**             | `Array<String>` |  `[]`   | 声明的`font-family` |
| **[`fontSpiderOptions`](#fontSpiderOptions)** |    `Object`     |  `{}`   | `font-spider`配置项 |

## License

[MIT](./LICENSE)

[npm]: https://img.shields.io/npm/v/font-spider-webpack-plugin.svg
[npm-url]: https://npmjs.com/package/font-spider-webpack-plugin
[node]: https://img.shields.io/node/v/font-spider-webpack-plugin.svg
[node-url]: https://nodejs.org
[tests]: https://github.com/tianxing0923/font-spider-webpack-plugin/actions/workflows/npm-publish.yml/badge.svg
[tests-url]: https://github.com/tianxing0923/font-spider-webpack-plugin/actions

---
_Source: https://npm.io/package/font-spider-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
