-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
115 lines (104 loc) · 4.6 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import axios from 'axios'
const pkg = require('./package')
const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin')
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
title: 'نشریه فارغالتحصیلی دانشجویان ورودی ۱۳۹۳',
meta: [
{charset: 'utf-8'},
{name: 'viewport', content: 'width=device-width, initial-scale=1'},
{name: 'msapplication-TileColor', content: '#ffffff'},
{name: 'theme-color', content: '#ffffff'},
{hid: 'description', name: 'description', content: 'نشریه آنلاین فارغالتحصیلی دانشجویان ورودی سال ۱۳۹۳ دانشکده مهندسی کامپیوتر و فناوری اطلاعات دانشگاه صنعتی امیرکبیر (پلیتکنیک تهران)'},
{property: 'og:title', content: 'نشریه فارغالتحصیلی دانشجویان ورودی ۱۳۹۳'},
{property: 'og:description', content: 'نشریه آنلاین فارغالتحصیلی دانشجویان ورودی سال ۱۳۹۳ دانشکده مهندسی کامپیوتر و فناوری اطلاعات دانشگاه صنعتی امیرکبیر (پلیتکنیک تهران)'},
{property: 'og:url', content: 'http://ceit93.github.io'},
{property: 'og:image', content: 'http://ceit93.github.io/icon.png'},
{property: 'og:type', content: 'website'},
{property: 'og:locale', content: 'fa_IR'}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: 'favicon.ico'},
{rel: 'icon', type: 'image/png', href: 'favicon-32x32.png', sizes:'32x32'},
{rel: 'icon', type: 'image/png', href: 'favicon-16x16.png', sizes:'16x16'},
{rel: 'mask-icon', href: 'safari-pinned-tab.svg', color: '#5bbad5'},
{rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons'},
{rel: 'apple-touch-startup-image', href: 'apple-splash-640x1136.png', media:'(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)'},
{rel: 'apple-touch-startup-image', href: 'apple-splash-750x1294.png', media:'(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)'},
{rel: 'apple-touch-startup-image', href: 'apple-splash-1242x2148.png', media:'(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)'},
{rel: 'apple-touch-startup-image', href: 'apple-splash-1125x2436.png', media:'(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)'},
{rel: 'apple-touch-startup-image', href: 'apple-splash-1536x2048.png', media:'(min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait)'},
{rel: 'apple-touch-startup-image', href: 'apple-splash-1668x2224.png', media:'(min-device-width: 834px) and (max-device-width: 834px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait)'},
{rel: 'apple-touch-startup-image', href: 'apple-splash-2048x2732.png', media:'(min-device-width: 1024px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait)'},
]
},
css: [
'@/assets/css/main.scss',
'@/assets/css/iransharp.css',
'@/assets/style/app.styl'
],
render: {
bundleRenderer: {
shouldPreload: (file, type) => {
return ['script', 'style', 'font'].includes(type)
}
}
},
/*
** Customize the progress bar color
*/
loading: {color: '#30fff2'},
/*
** Plugins to load before mounting the App
*/
plugins: [
'@/plugins/vuetify',
'@/plugins/helper/index.js'
],
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/axios',
['@nuxtjs/google-analytics', {id: 'UA-120518365-1'}]
],
axios: {
port: '3000',
prefix: '/data/',
https: true,
proxyHeaders: false,
proxy: true, // Can be also an object with default options
debug: false
},
generate: {
routes: function () {
return axios.get('http://localhost:3000/data/people/index.json')
.then((res) => {
return res.data.map((user) => {
return '/' + user.username
})
})
}
},
/*
** Build configuration
*/
build: {
transpile: ['vuetify/lib'],
plugins: [new VuetifyLoaderPlugin()],
loaders: {
stylus: {
import: ["~assets/style/variables.styl"]
}
},
/*
** You can extend webpack config here
*/
extend(config, ctx) {
}
}
}