You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.2 KiB
51 lines
1.2 KiB
import presetRemToPx from '@unocss/preset-rem-to-px' |
|
import { presetScalpel } from 'unocss-preset-scalpel' |
|
import { presetSoybeanAdmin } from './src/uno-preset/src/index' |
|
import { |
|
defineConfig, |
|
presetAttributify, |
|
presetIcons, |
|
presetTypography, |
|
presetWind3, |
|
presetWebFonts, |
|
transformerDirectives, |
|
transformerVariantGroup, |
|
} from 'unocss' |
|
|
|
export default defineConfig({ |
|
shortcuts: [], |
|
theme: { |
|
colors: {}, |
|
}, |
|
content: { |
|
pipeline: { |
|
include: [ |
|
//参考:https://unocss.dev/guide/extracting#extracting-from-build-tools-pipeline |
|
/\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/, |
|
'src/**/*.{js,ts}', |
|
'src/router/index.ts', |
|
'src/views/home/utils/menuConfig.ts', |
|
], |
|
}, |
|
}, |
|
rules: [['wh-full', { width: '100%', height: '100%' }]], |
|
presets: [ |
|
presetRemToPx(), |
|
presetScalpel(), |
|
presetWind3(), |
|
presetSoybeanAdmin(), |
|
presetAttributify({ |
|
prefix: 'uno-', |
|
prefixedOnly: true, |
|
}), |
|
presetIcons({ |
|
scale: 1.2, |
|
warn: true, |
|
}), |
|
presetTypography(), |
|
presetWebFonts({ |
|
fonts: {}, |
|
}), |
|
], |
|
transformers: [transformerDirectives(), transformerVariantGroup()], |
|
})
|
|
|