-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
47 lines (45 loc) · 1.11 KB
/
nuxt.config.ts
File metadata and controls
47 lines (45 loc) · 1.11 KB
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
// https://nuxt.com/docs/api/configuration/nuxt-config
import { createResolver } from '@nuxt/kit'
import tailwindcss from '@tailwindcss/vite'
const { resolve } = createResolver(import.meta.url)
export default defineNuxtConfig({
devtools: { enabled: true },
extends: ["@shopware/composables/nuxt-layer"],
imports: {
dirs: [
// auto import types
'types/*.{ts,tsx}',
],
},
modules: ['@shopware/nuxt-module', '@nuxt/eslint', '@nuxtjs/i18n', '@nuxt/image'],
css: [
// needs to be relative to work and to be able to be overridden by consumer instance
'./app/assets/styles/main.css',
],
alias: {
// alias to import files from layer, e.g. when consumer instance overrides main.css
'#nuxtware': resolve('./app')
},
vite: {
plugins: [
tailwindcss(),
]
},
i18n: {
strategy: "prefix_except_default",
detectBrowserLanguage: false,
vueI18n: './config',
langDir: './src/langs/',
defaultLocale: 'en',
locales: [
{
code: 'en',
file: 'en-GB.ts'
},
{
code: 'de',
file: 'de-DE.ts'
}
]
},
})