-
Notifications
You must be signed in to change notification settings - Fork 8
/
nuxt.config.js
80 lines (80 loc) · 2.17 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
module.exports = {
/*
** Headers of the page
*/
head: {
title: 'littlewin.wang - 琪中有不凡',
titleTemplate: '%s | littlewin.wang',
meta: [
{ charset: 'utf-8' },
{ 'http-equiv': 'cleartype', content: 'on' },
{ name: 'author', content: 'littlewin.wang@gmail.com' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1, user-scalable=no' },
{ hid: 'keywords', name: 'keywords', content: 'littlewin,前端,多特蒙德,javascript,Node.js' },
{ hid: 'description', name: 'description', content: '为可能而追求可能,为不能而独善其身' }
],
link: [
{ rel: 'icon', type: 'image/png', href: '/favicon.png' },
{ rel: 'author', type: 'text/plain', href: '/humans.txt' }
],
noscript: [
{ innerHTML: 'Where is JavaScript?' }
]
},
/*
** Customize the progress-bar color
*/
loading: { color: '#3B8070' },
/*
** Build configuration
*/
build: {
/*
** Run ESLINT on save
*/
// extend (config, ctx) {
// if (ctx.dev && ctx.isClient) {
// config.module.rules.push({
// enforce: 'pre',
// test: /\.(js|vue)$/,
// loader: 'eslint-loader',
// exclude: /(node_modules)/
// })
// }
// },
extend (webpackConfig, { isDev, isClient, isServer }) {
},
vendor: [
'axios',
'howler',
'clipboard',
'marked',
'gravatar'
],
babel: {
presets: ['@nuxtjs/babel-preset-app'],
plugins: [
'@babel/plugin-transform-runtime',
'@babel/plugin-transform-async-to-generator'
],
comments: true
},
analyze: true
},
plugins: [
{ src: '~plugins/axios.js' },
{ src: '~plugins/howler.js' },
{ src: '~plugins/clipboard.js' },
{ src: '~plugins/copy-right.js', ssr: false },
{ src: '~plugins/image-popup.js', ssr: false },
{ src: '~plugins/marked.js' },
{ src: '~plugins/highlight.js' },
{ src: '~plugins/gravatar.js' },
{ src: '~plugins/ua-device.js' },
{ src: '~plugins/ga.js', ssr: false }
],
css: [
'highlight.js/styles/monokai.css',
{ src: '~assets/sass/app.scss', lang: 'sass' }
]
}