-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
61 lines (58 loc) · 1.74 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = {
/*
** Headers of the page
*/
head: {
title: 'pub',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Content Licensing Platorm' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'shortcut icon', href: '/favicon.ico' },
{ rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' },
{ rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png' },
{ rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon-16x16.png' },
{ rel: 'manifest', href: '/manifest.json' },
{ rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#00c2c9' },
{ rel: 'stylesheet', href: '//use.fontawesome.com/releases/v5.0.6/css/all.css' },
],
script: [
{ src: "https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js" },
// { src: "https://cdnjs.cloudflare.com/ajax/libs/tippy.js/2.5.0/tippy.min.js" },
{ src: "https://unpkg.com/[email protected]/dist/tippy.all.min.js", },
],
},
/*
** Customize the progress bar color
*/
loading: { color: '#333333' },
/*
** Build configuration
*/
css: [
{ src: '~assets/stylus/main.styl', lang: 'stylus' },
],
modules: [
['@nuxtjs/google-analytics', {
id: 'UA-88836023-2'
}]
],
build: {
/*
** Run ESLint on save
*/
extend (config, { isDev, isClient }) {
if (isDev && isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
}
}