-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathnuxt.config.js
57 lines (57 loc) · 1.06 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
module.exports = {
mode: 'spa',
head: {
title: 'Denote',
meta: [
{
charset: 'UTF-8'
},
{
name: 'viewport',
content: 'width=device-width, initial-scale=1.0'
},
{
'http-equiv': 'X-UA-Compatible',
content: 'ie=edge'
}
],
link: [
{
rel: 'icon',
href: '/denote.png',
type: 'image/png'
}
]
},
css: [
'grid.css/grid.css',
'./css/global.css',
'./css/loading.css',
'./css/note.css'
],
plugins: [
'./plugins/vue-inter.js'
],
build: {
postcss: {
plugins: [
require('postcss-preset-env')({
stage: 0
})
]
}
},
render: {
static: {
setHeaders(res) {
res.setHeader('X-Frame-Options', 'ALLOWALL')
res.setHeader('Access-Control-Allow-Origin', '*')
res.setHeader('Access-Control-Allow-Methods', 'GET')
res.setHeader(
'Access-Control-Allow-Headers',
'Origin, X-Requested-With, Content-Type, Accept'
)
}
}
}
}