質問編集履歴

2

サイトのurlを貼りました

2018/12/04 06:50

投稿

yui-chan
yui-chan

スコア18

test CHANGED
File without changes
test CHANGED
@@ -4,11 +4,13 @@
4
4
 
5
5
 
6
6
 
7
-  progateというサイトでES6の環境設定方法があるんですが、それは見本通りできたようです。(右の画像)
7
+  progateというサイトでES6の環境設定方法があるんですが(https://prog-8.com/docs/es6-env)、それは見本通りできたようです。(右の画像)
8
8
 
9
9
 
10
10
 
11
11
  ところで、サイトを作りたいんですが、この中のどこにindex.hemlとstylesheet.cssファイルを作ればいいんですか?distの中ですか?node_modulesの中ですか?srcの中ですか?それともes6_sampleの中に直接入れればいいんですかね
12
+
13
+
12
14
 
13
15
 
14
16
 

1

package.jsonとbabel.config.jsのコードを貼りました

2018/12/04 06:50

投稿

yui-chan
yui-chan

スコア18

test CHANGED
File without changes
test CHANGED
@@ -9,3 +9,71 @@
9
9
 
10
10
 
11
11
  ところで、サイトを作りたいんですが、この中のどこにindex.hemlとstylesheet.cssファイルを作ればいいんですか?distの中ですか?node_modulesの中ですか?srcの中ですか?それともes6_sampleの中に直接入れればいいんですかね
12
+
13
+
14
+
15
+ ```package.jason
16
+
17
+
18
+
19
+ {
20
+
21
+ "name": "es6_sample",
22
+
23
+ "version": "1.0.0",
24
+
25
+ "description": "",
26
+
27
+ "main": "index.js",
28
+
29
+ "scripts": {
30
+
31
+ "test": "echo \"Error: no test specified\" && exit 1"
32
+
33
+ },
34
+
35
+ "keywords": [],
36
+
37
+ "author": "",
38
+
39
+ "license": "ISC",
40
+
41
+ "dependencies": {
42
+
43
+ "@babel/cli": "^7.2.0",
44
+
45
+ "@babel/core": "^7.2.0",
46
+
47
+ "@babel/preset-env": "^7.2.0"
48
+
49
+ }
50
+
51
+ }
52
+
53
+
54
+
55
+ ```
56
+
57
+
58
+
59
+ ```babel.config.js
60
+
61
+
62
+
63
+ const presets = [
64
+
65
+ [
66
+
67
+ "@babel/env",
68
+
69
+ ],
70
+
71
+ ];
72
+
73
+
74
+
75
+ module.exports = { presets };
76
+
77
+
78
+
79
+ ```