-
Notifications
You must be signed in to change notification settings - Fork 3
/
nuxt.config.js
54 lines (46 loc) · 1.55 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
module.exports = {
head: {
title: 'Özgür Uysal | Designer & Front End Developer',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Portfolio Site for Özgür Uysal, Designer & Front End Developer' },
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
],
},
router: {
// base: '/website/',
},
loading: { color: '#487fff' },
css: [
'@/assets/scss/main.scss',
],
plugins: [
'~/plugins/svg-sprite-loader',
'~/plugins/vue-scrollto',
{ src: '~plugins/ga.js', ssr: false },
],
build: {
extend(config, ctx) {
if (ctx.dev && ctx.isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/,
});
}
// We are removing the SVGs from URL loader's test property
// We'll handle them with svg-sprite-loader.js in plugins folder
const svgRule = config.module.rules.find(rule => rule.test.test('.svg'));
svgRule.test = /\.(png|jpe?g|gif|webp)$/;
},
vendor: ['axios'],
},
env: {
dribbbleToken: '9e096a9630f0d5572b692746bcdc13c20f09874c814d785cffd71854fbc3bd3a',
email: '[email protected]',
},
};