created
This commit is contained in:
29
unocss.config.ts
Normal file
29
unocss.config.ts
Normal file
@ -0,0 +1,29 @@
|
||||
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-wrap",
|
||||
"flex-start": "flex justify-start items-center",
|
||||
"flex-end": "flex justify-end items-center",
|
||||
"flex-between": "flex justify-between items-center",
|
||||
},
|
||||
],
|
||||
|
||||
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(),
|
||||
],
|
||||
};
|
Reference in New Issue
Block a user