include: [ 'src//*.html',指定需要生成CSS的HTML文件路径或通配符 ], theme: { extend: { 在这里编写自定义主题样式 }, }, } 4.在build脚本中添加unocss命令: 在项目的构建脚本(例如package.json中的scripts)中添加unocss命令,用于生成CSS文件。 json "scripts":{ "build": "unocss" } 5.运行unocss...
chore: include.gitattributes(#3718) 9个月前 .gitignore feat(playground): supports selecting a specific unocss version (#4016) 6个月前 .npmrc chore: lint 3年前 .tazerc.json chore: enforce vite and rollup version 1年前 LICENSE docs: update all readme licenses and licenses (#911) ...
另外enabled: false,第一次需要改为true才会生成.eslintrc-auto-import.json,生成后在关闭,避免后续重复生成 constAutoImport=require('unplugin-auto-import/webpack')configureWebpack:{plugins:[AutoImport({include:[/\.[tj]sx?$/,// .ts, .tsx, .js, .jsx/\.vue$/,/\.vue\?vue/// .vue],impor...
unocss/unocss最新发布版本:v0.62.3(2024-08-25 00:07:32) 🚀 Features preset-mini: Include outline-color in color properties - by @sibbng inhttps://github.com/unocss/unocss/issues/2116(7a8e3) Add more logical properties for inline direction - by @sibbng inhttps://github.com/unocss/...
"unocss.include": { "type": [ "array", "string" ], "items": { "type":"string" }, "description":"Directory of files to be detected" }, "unocss.exclude": { "type": [ "array", "string" ], "items": { "type":"string" ...
export default defineConfig(({ command, mode }) => { return { plugins: [ uni(), UnoCSS(), AutoImport({ include: [ /\.[tj]sx?$/, // .ts, .tsx, .js, .jsx 0 comments on commit c76f870 Please sign in to comment. Footer...
Provide a vite plugin to inject the final packaged product in library mode// @unocss-include. Latest version: 0.0.1, last published: 2 years ago. Start using vite-plugin-lib-insert-unocss in your project by running `npm i vite-plugin-lib-insert-unocss`.
Don't add spaces when class names include expressions as just part of them - by @jacob-8 in https://github.com/unocss/unocss/issues/2684 (ee304) Properly pass vite command to UnocssSveltePreprocess - by @jacob-8 in https://github.com/unocss/unocss/issues/2685 (fda1c) View chan...
use the following configuration.// It's necessary to add the following configuration if you use shadcn-vue or shadcn-svelte.content:{pipeline:{include:[// the default/\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/,// include js/ts files"src/**/*.{js,ts}",],},...
Other presets include: @unocss/preset-attributify: Provides Attributify Mode to other presets and rules @unocss/preset-icons: Provides the option to use any icon as a class utility unocss-preset-typography: A typography preset To set presets in your application, use the code below: // vite...