-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
67 lines (66 loc) · 2.33 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
62
63
64
65
66
67
module.exports = {
/*
** Headers of the page
*/
head: {
titleTemplate: '%s - Antoine Lassier',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'author', content: 'Antoine Lassier' },
{ hid: 'keywords', name: 'keywords', content: 'développement,design,site web,mobile,responsive,réalisation,site,créer,orléans,paris,portfolio,antoine lassier,lassier,designer,graphiste,charte graphique,gari,gariapp,gari app,développeur,python' },
{ hid: 'description', name: 'description', content: 'Porfolio d\'Antoine Lassier, développeur et designer web et mobile. Disponible en freelance pour votre création de site web ou applications mobiles à Paris et partout en France.' }
],
script: [
{ src: 'https://use.typekit.net/txv3mea.js' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.png' }
]
},
css: [
'normalize.css',
{ src: '~assets/scss/main.scss', lang: 'scss' }
],
/*
** Customize the progress-bar color
*/
loading: { color: '#5D87C9' },
/*
** Build configuration
*/
build: {
/*
** Run ESLINT on save
*/
extend(config, { isDev }) {
/* const cssLoader = config.module.rules.find((loader) => loader.test.toString() === '/\\.css$/')
//cssLoader.use.push('postcss-loader')
cssLoader.use.splice(2, 0, 'postcss-loader'); */
if (isDev && process.client) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
},
vendor: ['babel-polyfill', 'scrollreveal']
},
router: {
scrollBehavior: function (to, from, savedPosition) {
if (to.hash) {
return { selector: to.hash }
}
return { x: 0, y: window.pageYOffset }
}
},
plugins : [
{ src: '~plugins/vue-scroll-reveal', ssr: false },
{ src: '~plugins/vue-tippy', ssr: false }
],
modules: [
['@nuxtjs/google-analytics', { ua: 'UA-104678592-1' }],
]
}