-
-
Save suprith-s-reddy/4394a36de51c7cf455d045036621f5f3 to your computer and use it in GitHub Desktop.
Nuxt config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// import path from 'path'; | |
// import fs from 'fs'; | |
import RoutesDe from './routes/routes-de'; | |
export default { | |
// Global page headers (https://go.nuxtjs.dev/config-head) | |
head: { | |
meta: [ | |
{ charset: 'utf-8' }, | |
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }, | |
{ hid: 'description', name: 'description', content: '' } | |
], | |
link: [ | |
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, | |
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap' } | |
] | |
}, | |
// Customize the progress-bar color | |
loading: { color: '#1565c0' }, | |
// Global CSS (https://go.nuxtjs.dev/config-css) | |
css: [ | |
'bootstrap/dist/css/bootstrap.css', | |
'bootstrap-vue/dist/bootstrap-vue.css', | |
'sweetalert2/dist/sweetalert2.min.css', | |
'@/assets/styles/global.scss' | |
], | |
// Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins) | |
plugins: [ | |
{ src: '@/analytics/gtm', mode: 'client' }, | |
{ src: '@/plugins/global-directives' }, | |
{ src: '@/plugins/vue-authenticate', mode: 'client' }, | |
{ src: '@/plugins/vue-content-placeholders' }, | |
{ src: '@/plugins/vue-imgix' }, | |
{ src: '@/plugins/vue-masonry-css', mode: 'client' }, | |
{ src: '@/plugins/vue-tour', mode: 'client' }, | |
{ src: '@/plugins/vue-youtube' }, | |
{ src: '@/plugins/vuex-persistedstate', mode: 'client' }, | |
{ src: '@/plugins/vue-tags-input', mode: 'client' }, | |
{ src: '@/helpers/filters' } | |
], | |
// Auto import components (https://go.nuxtjs.dev/config-components) | |
components: false, | |
// Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules) | |
buildModules: [ | |
// https://go.nuxtjs.dev/eslint | |
'@nuxtjs/eslint-module', | |
'@nuxtjs/google-analytics' | |
], | |
// Modules (https://go.nuxtjs.dev/config-modules) | |
modules: [ | |
'@nuxtjs/axios', | |
'nuxt-i18n', | |
[ | |
'@nuxtjs/dotenv', { filename: `.env.${process.env.NODE_ENV}` } | |
], | |
[ | |
'vue-sweetalert2/nuxt', { buttonsStyling: false } | |
], | |
'vue-scrollto/nuxt' | |
], | |
// Axios module configuration (https://axios.nuxtjs.org/options) | |
axios: { | |
}, | |
// i18n module configuration (https://i18n.nuxtjs.org/options-reference) | |
i18n: { | |
locales: [ | |
{ | |
code: 'en', | |
iso: 'en-GB', | |
file: 'en-GB.js' | |
}, | |
{ | |
code: 'de', | |
iso: 'de-DE', | |
file: 'de-DE.js' | |
} | |
], | |
defaultLocale: 'de', | |
langDir: '/lang/', | |
lazy: true, | |
strategy: 'prefix_except_default', | |
parsePages: false, | |
vueI18nLoader: false, | |
vueI18n: { | |
silentFallbackWarn: true | |
}, | |
detectBrowserLanguage: false, | |
pages: { | |
'dashboard/index': { | |
de: RoutesDe.HOME | |
}, | |
'login/index': { | |
de: RoutesDe.LOGIN | |
} | |
} | |
}, | |
router: { | |
middleware: ['redirect'] | |
}, | |
// google analytics configuration (https://google-analytics.nuxtjs.org/options) | |
googleAnalytics: { | |
id: process.env.VUE_APP_GOOGLE_ANALYTICS_TOKEN, | |
checkDuplicatedScript: true, | |
autoTracking: { | |
exception: true | |
} | |
}, | |
// Build Configuration (https://go.nuxtjs.dev/config-build) | |
build: { | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment