-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
67 lines (66 loc) · 1.54 KB
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import transformerDirective from "@unocss/transformer-directives";
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
export default defineNuxtConfig({
shopware: {
shopwareEndpoint: process.env.shopwareEndpoint,
shopwareAccessToken: process.env.shopwareAccessToken,
},
alias: {
/**
* TODO: Temp fix until new VueUse published:
* - https://github.com/vueuse/vueuse/pull/2449
* - https://github.com/vueuse/vueuse/actions/workflows/publish.yml
*/
useMeta: "~/composables/useMeta",
},
typescript: {
typeCheck: true,
strict: true,
},
modules: [
"@vueuse/nuxt",
"@unocss/nuxt",
"@shopware-pwa/nuxt3-module",
"@nuxt/devtools"
],
// components: true,
components: {
dirs: ["~/components"],
global: true,
},
vueuse: {
ssrHandlers: true,
},
// Unocss bug fix https://github.com/nuxt/framework/issues/7623
experimental: {
inlineSSRStyles: false,
},
nitro: {
compressPublicAssets: true,
},
unocss: {
uno: true, // enabled `@unocss/preset-uno`
icons: true, // enabled `@unocss/preset-icons`
attributify: true, // enabled `@unocss/preset-attributify`,
preflight: true,
transformers: [transformerDirective()],
theme: {
extend: {
width: "width",
height: "height",
},
colors: {
brand: {
primary: "#189eff",
light: "#5ebbff",
dark: "#0081df",
},
},
},
},
router: {
options: {
linkExactActiveClass: "text-brand-primary",
},
},
});