質問編集履歴

1

nuxt.config.jsを追加しました

2018/07/01 06:45

投稿

chikara_sugie
chikara_sugie

スコア8

test CHANGED
File without changes
test CHANGED
@@ -13,6 +13,94 @@
13
13
  以下のようなエラーを吐きます。色々しらべたのですが英語がわからず...。
14
14
 
15
15
  手助けしていただけますと幸いです...!
16
+
17
+
18
+
19
+ ###nuxt.config.js
20
+
21
+ module.exports = {
22
+
23
+ /*
24
+
25
+ ** Headers of the page
26
+
27
+ */
28
+
29
+
30
+
31
+ head: {
32
+
33
+ title: 'projecthokusai',
34
+
35
+ meta: [
36
+
37
+ { charset: 'utf-8' },
38
+
39
+ { name: 'viewport', content: 'width=device-width, initial-scale=1' },
40
+
41
+ { hid: 'description', name: 'description', content: 'Nuxt.js project' }
42
+
43
+ ],
44
+
45
+ link: [
46
+
47
+ { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
48
+
49
+ ]
50
+
51
+ },
52
+
53
+ css: [
54
+
55
+ { src:'~/assets/scss/main.scss' }
56
+
57
+ ],
58
+
59
+ build: {
60
+
61
+ /*
62
+
63
+ ** Run ESLint on save
64
+
65
+ */
66
+
67
+ extend (config, { isDev, isClient }) {
68
+
69
+ if (isDev && isClient) {
70
+
71
+ config.module.rules.push({
72
+
73
+ enforce: 'pre',
74
+
75
+ test: /.(js|vue)$/,
76
+
77
+ loader: 'eslint-loader',
78
+
79
+ exclude: /(node_modules)/
80
+
81
+ })
82
+
83
+ }
84
+
85
+ }
86
+
87
+ },
88
+
89
+
90
+
91
+ // modules: [
92
+
93
+ // ['nuxt-sass-resources-loader', [
94
+
95
+ // '@/assets/scss/main.scss',
96
+
97
+ // ]],
98
+
99
+ // ],
100
+
101
+ }
102
+
103
+
16
104
 
17
105
 
18
106