Skip to content

Commit

Permalink
build: add iconify resource in app
Browse files Browse the repository at this point in the history
  • Loading branch information
lastsunday committed Dec 20, 2024
1 parent 3ff041f commit 277734d
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@

1. (Sidepanel)修复主页图表默认显示tooltip的问题。

### 🔗 Build

1. 新增iconify图标离线打包。

### 🔨 Dependency

1. Update @ant-design/charts ^2.2.5
2. Add @iconify/json ^2.2.286
3. Add unplugin-icons ^0.22.0

## 2.2.0(2024-12-20)

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@ant-design/charts": "^2.2.5",
"@ant-design/icons": "^5.5.1",
"@ant-design/pro-components": "^2.8.2",
"@iconify/json": "^2.2.286",
"@pansy/lnglat-transform": "^1.0.3",
"@tsparticles/react": "^3.0.0",
"@types/geojson": "^7946.0.14",
Expand Down Expand Up @@ -84,6 +85,7 @@
"typescript": "^5.7.2",
"typescript-eslint": "^8.16.0",
"unocss": "^0.65.1",
"unplugin-icons": "^0.22.0",
"vite-plugin-wasm": "^3.3.0",
"vite-plugin-web-extension": "^4.1.6",
"web-ext": "^8.2.0",
Expand Down
83 changes: 70 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion wxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import react from "@vitejs/plugin-react-swc";
import { copyFileSync } from "fs";
import { resolve } from "path";
import Icons from 'unplugin-icons/vite';
import wasm from "vite-plugin-wasm";
import { defineConfig } from 'wxt';

Expand Down Expand Up @@ -82,7 +83,7 @@ export default defineConfig({
}
},
plugins: () => {
[react(), wasm()]
[react(), wasm(), Icons(),]
},
worker: {
plugins: () => [wasm()]
Expand Down

0 comments on commit 277734d

Please sign in to comment.