-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
48 lines (37 loc) · 947 Bytes
/
nuxt.config.js
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
import { defineNuxtConfig } from '@nuxt/bridge'
import global from './utils/global'
export default defineNuxtConfig({
ssr: process.env.SSR_ENV !== 'false',
head: {
titleTemplate: '%s | ' + global.siteName,
title: global.siteName + ' | ' + global.siteTag,
htmlAttrs: {
lang: global.siteLang,
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
],
},
env: {
baseUrl: global.siteUrl,
},
loading: {
color: global.siteColor,
},
css: ['./styles/main.scss'],
plugins: ['./plugins/oruga.js'],
components: true,
modules: [],
buildModules: [
'@nuxtjs/eslint-module',
'@nuxtjs/stylelint-module',
'@nuxtjs/html-validator',
'@nuxtjs/style-resources',
'nuxt-purgecss',
],
alias: {
tslib: 'tslib/tslib.es6.js',
},
build: { analyze: true, extractCSS: process.env.NODE_ENV === 'production' },
})