mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
3c449a9017
Extract theme tokens, shortcuts, blocklist, safelist, and icon configuration from uno.config.ts into a reusable workspace package at packages/unocss-preset/. - Create @hugo-fixit/unocss-preset with presetFixIt and createFixItConfig() - Simplify uno.config.ts to use createFixItConfig() with content/cli overrides - Move unocss, @iconify/json from root devDependencies to preset package
26 lines
557 B
TypeScript
26 lines
557 B
TypeScript
import { createFixItConfig } from '@hugo-fixit/unocss-preset'
|
|
|
|
export default createFixItConfig({
|
|
overrides: {
|
|
// Scan Hugo templates for class usage
|
|
content: {
|
|
filesystem: [
|
|
'layouts/**/*.html',
|
|
'assets/js/**/*.ts',
|
|
],
|
|
pipeline: {
|
|
exclude: ['node_modules', 'dist'],
|
|
},
|
|
},
|
|
// CLI entry for unocss / unocss:watch
|
|
cli: {
|
|
entry: [
|
|
{
|
|
patterns: ['layouts/**/*.html', 'assets/js/**/*.ts'],
|
|
outFile: 'assets/css/unocss.css',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
})
|