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.
44 lines
1.4 KiB
44 lines
1.4 KiB
3 weeks ago
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
var preset_rem_to_px_1 = require("@unocss/preset-rem-to-px");
|
||
|
var unocss_preset_scalpel_1 = require("unocss-preset-scalpel");
|
||
|
var index_1 = require("./src/uno-preset/src/index");
|
||
|
var unocss_1 = require("unocss");
|
||
|
exports.default = (0, unocss_1.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: [
|
||
|
(0, preset_rem_to_px_1.default)(),
|
||
|
(0, unocss_preset_scalpel_1.presetScalpel)(),
|
||
|
(0, unocss_1.presetWind3)(),
|
||
|
(0, index_1.presetSoybeanAdmin)(),
|
||
|
(0, unocss_1.presetAttributify)({
|
||
|
prefix: 'uno-',
|
||
|
prefixedOnly: true,
|
||
|
}),
|
||
|
(0, unocss_1.presetIcons)({
|
||
|
scale: 1.2,
|
||
|
warn: true,
|
||
|
}),
|
||
|
(0, unocss_1.presetTypography)(),
|
||
|
(0, unocss_1.presetWebFonts)({
|
||
|
fonts: {},
|
||
|
}),
|
||
|
],
|
||
|
transformers: [(0, unocss_1.transformerDirectives)(), (0, unocss_1.transformerVariantGroup)()],
|
||
|
});
|