-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
84 lines (82 loc) · 2.24 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
//Uncomment the line below when running tests
// require("dotenv").load({ path: "./.env_test" });
//Comment the line above during development/production
require("dotenv").load();
module.exports = {
/*
** Headers of the page
*/
head: {
title: "starter",
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ hid: "description", name: "description", content: "Nuxt.js project" }
],
link: [
{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
{
rel: "stylesheet",
href:
"//fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese"
}
],
script: [
{ src: "/js/iziToast.min.js" },
{ src: "/js/jquery-2.1.4.min.js" },
{
src:
"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
},
// { src: '/js/bootstrap.js' },
{ src: "/js/waypoints.min.js" },
{ src: "/js/counterup.min.js" },
{ src: "/js/responsiveslides.min.js" },
{ src: "/js/bootstrap-datetimepicker.js" },
{ src: "/js/SmoothScroll.min.js" },
{ src: "/js/easing.js" },
{ src: "/js/jquery.flexslider.js" },
{ src: "/js/bootstrap-datepicker.js" },
// { src: "/js/summernote-bs4.js" }
]
},
/*
** Global CSS
*/
css: [
// '~/assets/css/bootstrap.css',
"~/assets/css/flexslider.css",
"~/assets/css/fontawesome-all.css",
// '~/assets/css/style.css',
"~/assets/css/iziToast.min.css",
"~/assets/css/bootstrap-datetimepicker.min.css",
"~/assets/css/datepicker.css",
// "~/assets/css/summernote-bs4.css"
],
loading: {
color: "blue"
},
modules: [
// Simple usage
"cookie-universal-nuxt"
// With options
// ['cookie-universal-nuxt', { alias: 'cookiz' }],
],
/*
** Add axios globally
*/
build: {
vendor: ["axios"]
},
env: {
email_address: process.env.email_address
},
serverMiddleware: [
// API middleware
"~/api/index.js"
],
plugins: ["plugins/i18n.js"],
router: {
middleware: ["get_user_from_jwt", "i18n", "only_admin_is_allowed"]
}
};