Skip to content

Commit 652551b

Browse files
committed
chore(build): fix warnings
1 parent 6620d7a commit 652551b

File tree

2 files changed

+47
-48
lines changed

2 files changed

+47
-48
lines changed

nuxt.config.ts

Lines changed: 46 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,6 @@ import pkg from './package.json'
44
export const wrappedPrimeInputs: string[] = ['AutoComplete', 'CascadeSelect', 'Checkbox', 'Chip', 'ColorPicker', 'DatePicker', 'Editor', 'InputMask', 'InputNumber', 'InputOtp', 'InputText', 'Knob', 'Listbox', 'MultiSelect', 'Password', 'RadioButton', 'Rating', 'Select', 'SelectButton', 'Slider', 'Textarea', 'ToggleButton', 'ToggleSwitch', 'TreeSelect']
55

66
export default defineNuxtConfig({
7-
future: {
8-
compatibilityVersion: 4,
9-
},
10-
experimental: {
11-
appManifest: false,
12-
},
13-
debug: false,
14-
15-
compatibilityDate: '2024-07-04',
16-
17-
ssr: true,
18-
devtools: { enabled: true },
19-
20-
runtimeConfig: {
21-
public: {
22-
APP_VERSION: pkg.version,
23-
APP_NAME: pkg.name,
24-
// eslint-disable-next-line node/prefer-global/process
25-
APP_MODE: process.env?.NODE_ENV,
26-
},
27-
},
287

298
modules: [
309
'@pinia/nuxt',
@@ -37,6 +16,9 @@ export default defineNuxtConfig({
3716
'@sfxcode/formkit-primevue-nuxt',
3817
'@unocss/nuxt',
3918
],
19+
20+
ssr: true,
21+
devtools: { enabled: true },
4022
content: {
4123
highlight: {
4224
theme: {
@@ -49,6 +31,48 @@ export default defineNuxtConfig({
4931
},
5032
},
5133

34+
runtimeConfig: {
35+
public: {
36+
APP_VERSION: pkg.version,
37+
APP_NAME: pkg.name,
38+
// eslint-disable-next-line node/prefer-global/process
39+
APP_MODE: process.env?.NODE_ENV,
40+
},
41+
},
42+
43+
build: {
44+
transpile: ['nuxt', 'primevue', '@sfxcode/formkit-primevue'],
45+
},
46+
47+
sourcemap: {
48+
client: false,
49+
server: false,
50+
},
51+
future: {
52+
compatibilityVersion: 4,
53+
},
54+
experimental: {
55+
appManifest: false,
56+
},
57+
58+
compatibilityDate: '2024-07-04',
59+
debug: false,
60+
61+
eslint: {
62+
config: {
63+
standalone: false,
64+
nuxt: {
65+
sortConfigKeys: true,
66+
},
67+
},
68+
},
69+
formkitPrimevue: {
70+
includePrimeIcons: true,
71+
includeStyles: true,
72+
installFormKit: true,
73+
installI18N: true,
74+
},
75+
5276
i18n: {
5377
lazy: true,
5478
langDir: 'locales',
@@ -63,12 +87,6 @@ export default defineNuxtConfig({
6387
optimizeTranslationDirective: false,
6488
},
6589
},
66-
formkitPrimevue: {
67-
includePrimeIcons: true,
68-
includeStyles: true,
69-
installFormKit: true,
70-
installI18N: true,
71-
},
7290
primevue: {
7391
autoImport: true,
7492
options: {
@@ -81,28 +99,9 @@ export default defineNuxtConfig({
8199
ripple: true,
82100
},
83101
components: {
84-
exclude: [...wrappedPrimeInputs, 'Button', 'Form', 'FormField'],
85-
},
86-
87-
},
88-
89-
build: {
90-
transpile: ['nuxt', 'primevue', '@sfxcode/formkit-primevue'],
91-
},
92-
93-
eslint: {
94-
config: {
95-
standalone: false,
96-
nuxt: {
97-
sortConfigKeys: true,
98-
},
102+
exclude: [...wrappedPrimeInputs, 'Button', 'Form', 'FormField', 'Chart'],
99103
},
100-
},
101-
102104

103-
sourcemap: {
104-
client: false,
105-
server: false,
106105
},
107106

108107
})

uno.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
} from 'unocss'
1111

1212
function convert(color: string) {
13-
return `color-mix(in srgb, ${color} calc(100% * <alpha-value>), transparent)`
13+
return `color-mix(in srgb, ${color} 100%, transparent)`
1414
}
1515

1616
export default defineConfig({

0 commit comments

Comments
 (0)