mirror of
https://github.com/gotson/komga.git
synced 2025-12-06 16:42:24 +01:00
18 lines
443 B
TypeScript
18 lines
443 B
TypeScript
import presetIcons from '@unocss/preset-icons'
|
|
import { defineConfig } from 'unocss'
|
|
import { aliases } from 'vuetify/iconsets/mdi'
|
|
|
|
// build the safelist from the vuetify icon aliases
|
|
const vuetifyIcons = Object.keys(aliases).map(
|
|
(key) => `i-mdi:${aliases[key]!.toString().substring(4)}`,
|
|
)
|
|
|
|
export default defineConfig({
|
|
presets: [
|
|
presetIcons({
|
|
/* options */
|
|
}),
|
|
// ...other presets
|
|
],
|
|
safelist: vuetifyIcons,
|
|
})
|