Skip to content

Commit

Permalink
update icon config
Browse files Browse the repository at this point in the history
  • Loading branch information
mubaidr committed Jun 8, 2023
1 parent 00d0798 commit 997acd6
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 17 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ A [Vite](https://vitejs.dev/) powered WebExtension ([Chrome](https://developer.c
- Effortless communications - powered by [`webext-bridge`](https://github.com/zikaari/webext-bridge) and [VueUse](https://github.com/antfu/vueuse) storage
- [Components auto importing](./src/components)
- [Icons](./src/components) - Access to icons from any iconset directly
- By default [Material Design Icons](https://materialdesignicons.com/cdn/1.6.50-dev/) set is enabled
- [TypeScript](https://www.typescriptlang.org/) - type safe
- `Eslint` & `Prettier` configured for `vue`, `javascript`, `typescript`

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"@vitejs/plugin-vue": "^4.2.3",
"@vue/compiler-sfc": "^3.3.4",
"@vueuse/core": "^10.1.2",
"autoprefixer": "^10.4.14",
"eslint": "^8.41.0",
Expand Down
22 changes: 10 additions & 12 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 tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"paths": {
"~/*": ["./src/*"],
"src/*": ["./src/*"]
}
},
"types": ["unplugin-icons/types/vue"]
},
"include": [
"vite.config.ts",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"paths": {
"~/*": ["./src/*"],
"src/*": ["./src/*"]
}
},
"types": ["unplugin-icons/types/vue"]
},
"include": [
"vite.config.ts",
Expand Down
8 changes: 5 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export default defineConfig({
'vue',
'vue-router',
'vue/macros',
{ 'webext-bridge': ['sendMessage', 'onMessage'] },
],
dts: 'src/auto-imports.d.ts',
}),
Expand All @@ -57,14 +56,17 @@ export default defineConfig({
resolvers: [
// auto import icons
IconsResolver({
prefix: 'icon',
prefix: 'i',
enabledCollections: ['mdi'],
}),
],
}),

// https://github.com/antfu/unplugin-icons
Icons(),
Icons({
autoInstall: true,
compiler: 'vue3'
}),

// rewrite assets to use relative path
{
Expand Down

0 comments on commit 997acd6

Please sign in to comment.