-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.js
More file actions
156 lines (135 loc) · 5.3 KB
/
nuxt.config.js
File metadata and controls
156 lines (135 loc) · 5.3 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
export default {
// Target: https://go.nuxtjs.dev/config-target
target: 'static',
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: 'Resilient Software Services LLP',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'format-detection', content: 'telephone=no' },
{ hid: 'description', name: 'description', content: 'We inspire business growth with simple, yet powerful software experiences.' },
{ hid: 'keywords', name: 'keywords', content: 'Resilient Tech, Resilient Software Services LLP, ERP, ERPNext, Frappe, open source, software, customization, e-Commerce ERP, Manufacturing ERP, HRMS, India Compliance' },
{ hid: 'author', name: 'author', content: 'Resilient Software Services LLP' },
{ hid: 'robots', name: 'robots', content: 'index, follow' },
{ hid: 'googlebot', name: 'robots', content: 'index, follow' },
{ hid: 'copyright', name: 'copyright', content: 'Copyright © 2024, Resilient Software Services LLP' },
{ hid: 'revisit-after', name: 'revisit-after', content: '7 days' },
{ hid: 'og:title', property: 'og:title', content: 'Resilient Software Services LLP' },
{ hid: 'og:description', property: 'og:description', content: 'We inspire business growth with simple, yet powerful software experiences.' },
{ hid: 'og:type', name: 'og:type', content: 'website' },
{ hid: 'og:url', name: 'og:url', content: 'https://www.resilient.tech/' },
{ hid: 'og:image', property: 'og:image', content: 'https://www.resilient.tech/_nuxt/assets/images/OG-Share.jpg' },
{ hid: 'og:image:alt', name: 'og:image:alt', content: 'Resilient Software Services LLP Logo' },
{ hid: 'og:image:width', name: 'og:image:width', content: '1200' },
{ hid: 'og:image:height', name: 'og:image:height', content: '675' },
{ hid: 'twitter:card', name: 'twitter:card', content: 'summary_large_image' },
{ hid: 'twitter:title', name: 'twitter:title', content: 'Resilient Software Services LLP' },
{ hid: 'twitter:description', name: 'twitter:description', content: 'We inspire business growth with simple, yet powerful software experiences.' },
{ hid: 'twitter:image', name: 'twitter:image', content: 'https://www.resilient.tech/_nuxt/assets/images/OG-Share.jpg' }, // note : image is png so may get problem
{ hid: 'twitter:image:width', name: 'twitter:image:width', content: '1200' },
{ hid: 'twitter:image:height', name: 'twitter:image:height', content: '675' },
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.png' },
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500&display=swap',
// href: 'https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;800&display=swap',
},
],
script: [
{ type: 'text/javascript', src: '/js/jquery.min.js', body: true },
{
type: 'text/javascript',
src: '/js/jquery.scrollex.min.js',
body: true,
},
{ type: 'text/javascript', src: '/js/main.js', body: true },
],
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: [
'~/assets/css/font-awesome.min.css',
'~/assets/scss/custom.scss',
'~/assets/css/main.css',
],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: ['~/plugins/bootstrap.js', '~/plugins/utils.client.js'],
// Auto import components: https://go.nuxtjs.dev/config-components
components: {
dirs: [
'~/components',
'~/components/ui',
'~/components/home',
'~/components/jobs',
],
},
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
// https://go.nuxtjs.dev/typescript
'@nuxt/typescript-build',
'nuxt-purgecss',
],
purgeCSS: {
mode: 'webpack',
enabled: ({ isDev, isClient }) => !isDev && isClient, // or `false` when in dev/debug mode
paths: [
'components/**/*.vue',
'layouts/**/*.vue',
'pages/**/*.vue',
'plugins/**/*.js',
],
styleExtensions: ['.css'],
whitelist: ['body', 'html', 'nuxt-progress'],
extractors: [
{
extractor: (content) => content.match(/[A-z0-9-:\\/]+/g) || [],
extensions: ['html', 'vue', 'js'],
},
],
},
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/axios
'@nuxtjs/axios',
// https://go.nuxtjs.dev/pwa
'@nuxtjs/pwa',
'bootstrap-vue/nuxt',
'@nuxtjs/style-resources',
],
// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios: {},
// PWA module configuration: https://go.nuxtjs.dev/pwa
pwa: {
manifest: {
lang: 'en',
},
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
transpile: ['altcha'], // Transpile the altcha package for older webpack versions
},
// Vue configuration for custom elements (for ALTCHA)
vue: {
config: {
ignoredElements: ['altcha-widget'],
},
},
module: {
rules: [
{
test: /\.s[ac]ss$/i,
use: ['style-loader', 'css-loader', 'sass-loader'],
},
],
},
bootstrapVue: {
bootstrapCSS: false,
icons: false,
},
pageTransition: {
name: 'fade',
mode: 'out-in',
},
}