fix(unocss): #16
This commit is contained in:
parent
927c7f0476
commit
e11dd4a167
@ -28,10 +28,12 @@ if (!isMp) {
|
|||||||
// 支持css class属性化,eg: `<button bg="blue-400 hover:blue-500 dark:blue-500 dark:hover:blue-600" text="sm white">attributify Button</button>`
|
// 支持css class属性化,eg: `<button bg="blue-400 hover:blue-500 dark:blue-500 dark:hover:blue-600" text="sm white">attributify Button</button>`
|
||||||
presets.push(presetAttributify())
|
presets.push(presetAttributify())
|
||||||
}
|
}
|
||||||
|
if (!isH5) {
|
||||||
|
presets.push(presetRemRpx())
|
||||||
|
}
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
presets: [
|
presets: [
|
||||||
presetApplet({ enable: !isH5 }),
|
presetApplet({ enable: !isH5 }),
|
||||||
presetRemRpx(),
|
|
||||||
...presets,
|
...presets,
|
||||||
// 支持图标,需要搭配图标库,eg: @iconify-json/carbon, 使用 `<button class="i-carbon-sun dark:i-carbon-moon" />`
|
// 支持图标,需要搭配图标库,eg: @iconify-json/carbon, 使用 `<button class="i-carbon-sun dark:i-carbon-moon" />`
|
||||||
presetIcons({
|
presetIcons({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user