1 | module.exports = {
|
2 | head: {
|
3 | title: 'starter',
|
4 | meta: [
|
5 | { charset: 'utf-8' },
|
6 | { name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
7 | { hid: 'description', name: 'description', content: 'Nuxt.js project' }
|
8 | ],
|
9 | link: [
|
10 | { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
|
11 | ]
|
12 | },
|
13 | loading: { color: '#3B8070' },
|
14 | build: {
|
15 | extend (config, ctx) {
|
16 | if (ctx.isClient) {
|
17 | config.module.rules.push({
|
18 | enforce: 'pre',
|
19 | test: /\.(js|vue)$/,
|
20 | loader: 'eslint-loader',
|
21 | exclude: /(node_modules)/
|
22 | })
|
23 | }
|
24 | }
|
25 | },
|
26 | modules: [
|
27 | '@nuxtjs/content'
|
28 | ]
|
29 | }
|