UNPKG

create-sf-vue

Version:

一个基于 Vite + Vue3 的项目模板脚手架,支持 TypeScript 和 JavaScript。

28 lines (23 loc) 829 B
import presetWeapp from "unocss-preset-weapp"; import { extractorAttributify, transformerClass } from "unocss-preset-weapp/transformer"; const { presetWeappAttributify, transformerAttributify } = extractorAttributify(); export default { presets: [ // https://github.com/MellowCo/unocss-preset-weapp presetWeapp(), // attributify autocomplete presetWeappAttributify(), ], shortcuts: [ { "flex-center": "flex justify-center items-center", "flex-col": "flex flex-col", }, ], transformers: [ // https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerAttributify transformerAttributify(), // https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerClass transformerClass(), ], };