This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.js
84 lines (84 loc) · 2.03 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
module.exports = {
router: {
base: "/conf/"
},
/*
** Headers of the page
*/
head: {
title: "DevParaná Conference 2018",
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{
hid: "description",
name: "description",
content: "Dev Paraná Conference 2018"
}
],
link: [
{ rel: "icon", type: "image/x-icon", href: "/conf/favicon.ico" },
{
rel: "stylesheet",
href: "https://use.fontawesome.com/releases/v5.0.10/css/all.css"
}
],
script: [
{
src: "https://cdnjs.cloudflare.com/ajax/libs/rellax/1.5.1/rellax.min.js"
},
{
src:
"https://stc.pagseguro.uol.com.br/pagseguro/api/v2/checkout/pagseguro.lightbox.js"
}
]
},
css: [
{ src: "@/assets/sass/main.scss", lang: "scss" },
{ src: "node_modules/the-grid-flexbox/css/the-grid.min.css", lang: "css" },
{
src: "node_modules/alerts-css/assets/css/alerts-css.min.css",
lang: "css"
}
],
plugins: [
{ src: "~plugins/smooth-scroll.js", ssr: false },
{ src: "~plugins/ga.js", ssr: false },
{ src: "~plugins/vue-countdown.js", ssr: false }
],
/*
** Customize the progress bar color
*/
loading: { color: "#15a04b" },
/*
** Build configuration
*/
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)/
});
}
config.module.rules.forEach(rule => {
if (rule.test.toString() === "/\\.vue$/") {
rule.options.loaders.scss[2].options.data =
'@import "./assets/sass/base/variables.scss";@import "./assets/sass/base/colors.scss";';
}
});
}
},
modules: [
'nuxt-facebook-pixel-module'
],
facebook: {
track: 'PageView',
pixelId: '244754419595080'
}
};