Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 设计基本结构与核心依赖 #1

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 35 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,35 @@
# FontSlim
This project can help you extract some of the font files you want and reduce the volume of the font files in the project
> [!WARNING]
> 此项目正在开发阶段!🚧

<p align="center">
<img width="160px" src="./font-slim-logo.png" />
</p>
<h1 align="center">FontSlim </h1>
<p align="center">字体文件提取.</p>
<p align="center"><b>提取所需的字体文件,减小它们的体积,优化项目资源。</b></p>
<p align="center">
<img src="https://img.shields.io/badge/license-MIT-4424e0.svg?" />
</p>

### 简介
在日常项目中,有一些UI同学经常搞一些其他字体来美化界面,而这种特殊的字体绝大多数情况下仅限于`数字`与`字母`,汉字几乎不会使用,因此,当我们引进整个字体包时,对项目来说是非常冗余的。

font-slim 是一个基于 `fontmin` 封装的字体过滤工具,主要用来过滤无用字体,大幅减小字体包大小。

### 安装依赖

```bash
pnpm install
```

## License

[MIT](./LICENSE)

## CHANGELOG

[CHANGELOG]('./CHANGELOG')

## Author

[HoMeTown](https://juejin.cn/user/4116184668057390) 🙊
Binary file added font-slim-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"dist"
],
"scripts": {
"build": "unbuild",
"build:target": "esno src/target.ts",
"build:nl": "esno src/nl.ts",
"dev": "unbuild --stub",
"lint": "eslint .",
"prepublishOnly": "nr build",
Expand All @@ -47,6 +48,9 @@
"typecheck": "tsc --noEmit",
"prepare": "simple-git-hooks"
},
"dependencies": {
"fontmin": "^1.1.0"
},
"devDependencies": {
"@antfu/eslint-config": "^2.18.1",
"@antfu/ni": "^0.21.12",
Expand Down
Loading
Loading