[F] Fix warnings
This commit is contained in:
+6
-20
@@ -1,6 +1,5 @@
|
|||||||
// https://github.com/Menci/Marina/blob/main/apps/web/uno.config.ts
|
// https://github.com/Menci/Marina/blob/main/apps/web/uno.config.ts
|
||||||
import { createLocalFontProcessor } from '@unocss/preset-web-fonts/local';
|
import { defineConfig, presetWind3, presetAttributify, presetIcons, presetTypography, transformerDirectives } from 'unocss';
|
||||||
import { defineConfig, presetWind3, presetAttributify, presetIcons, presetTypography, presetWebFonts, transformerDirectives } from 'unocss';
|
|
||||||
import presetAnimations from 'unocss-preset-animations';
|
import presetAnimations from 'unocss-preset-animations';
|
||||||
|
|
||||||
function createColorSchemeConfig(hueBaseVariable: string, hueOffset = 0) {
|
function createColorSchemeConfig(hueBaseVariable: string, hueOffset = 0) {
|
||||||
@@ -37,24 +36,7 @@ export default defineConfig({
|
|||||||
presetTypography(),
|
presetTypography(),
|
||||||
presetIcons({
|
presetIcons({
|
||||||
scale: 1.2,
|
scale: 1.2,
|
||||||
warn: true,
|
warn: false,
|
||||||
}),
|
|
||||||
presetWebFonts({
|
|
||||||
fonts: {
|
|
||||||
sans: {
|
|
||||||
name: 'Normalized Quicksand',
|
|
||||||
provider: 'none',
|
|
||||||
},
|
|
||||||
mono: {
|
|
||||||
name: 'Maple Mono',
|
|
||||||
provider: 'fontsource',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
processors: createLocalFontProcessor({
|
|
||||||
cacheDir: 'node_modules/.cache/unocss/fonts',
|
|
||||||
fontAssetsDir: 'public/assets/fonts/cache',
|
|
||||||
fontServeBaseUrl: '/assets/fonts/cache',
|
|
||||||
}),
|
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
// By default, `.ts` and `.js` files are NOT extracted.
|
// By default, `.ts` and `.js` files are NOT extracted.
|
||||||
@@ -70,6 +52,10 @@ export default defineConfig({
|
|||||||
'**/shadcn-ui/**/*.{vue,js,ts}',
|
'**/shadcn-ui/**/*.{vue,js,ts}',
|
||||||
'**/ui/**/*.{vue,js,ts}',
|
'**/ui/**/*.{vue,js,ts}',
|
||||||
],
|
],
|
||||||
|
exclude: [
|
||||||
|
'src/lib/server/**/*',
|
||||||
|
'**/*.server.ts',
|
||||||
|
]
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
theme: {
|
theme: {
|
||||||
|
|||||||
Reference in New Issue
Block a user