File tree Expand file tree Collapse file tree 4 files changed +44
-13
lines changed
packages/react-scripts/template/src Expand file tree Collapse file tree 4 files changed +44
-13
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,18 @@ class App extends Component {
12
12
< div className = "App" >
13
13
< div className = "App-header" >
14
14
< img src = { logo } className = "App-logo" alt = "logo" />
15
- < h2 className = "App-title" > ☢ Customizable create-react-app ☢ </ h2 >
15
+ < h2 className = "App-title" > ☢ custom-react-scripts ☢ </ h2 >
16
+ < div className = "App-subtitle" > allow custom config for create-react-app without ejecting</ div >
16
17
</ div >
17
18
18
19
< div className = { styles . description } >
19
- < p > If you want to enable certain features just modify the < b > .env</ b > file in the root directory of this
20
+
21
+ < div className = { styles . command } >
22
+ < code > create-react-app my-app --scripts-version custom-react-scripts</ code >
23
+ </ div >
24
+
25
+ < p > If you want to enable/disable certain features just modify the < b > .env</ b > file in the root directory of
26
+ the
20
27
project.
21
28
</ p >
22
29
@@ -60,7 +67,7 @@ class App extends Component {
60
67
< ul className = "configs babel-configs" >
61
68
< li >
62
69
< code > REACT_APP_WEBPACK_DASHBOARD=true</ code >
63
- < span > - Enable webpack-dashboard ⚠️ (this will turn off the original create-react-app message logs) </ span >
70
+ < span > - Enable webpack-dashboard ⚠️ < span className = { styles . experimental } > (experimental) </ span > </ span >
64
71
</ li >
65
72
</ ul >
66
73
@@ -76,6 +83,11 @@ class App extends Component {
76
83
</ li >
77
84
</ ul >
78
85
86
+ < br />
87
+ < br />
88
+ < a target = "_blank" className = { styles . readmeLink } href = "https://github.com/kitze/create-react-app/tree/master/packages/react-scripts" >
89
+ Link to full README.md
90
+ </ a >
79
91
</ div >
80
92
</ div >
81
93
)
Original file line number Diff line number Diff line change 2
2
&-title {
3
3
justify-content : center ;
4
4
}
5
+
6
+ &-subtitle {
7
+ font-weight : 100 ;
8
+ }
9
+
5
10
}
Original file line number Diff line number Diff line change 17
17
.App {
18
18
& -header {
19
19
background-color : #222 ;
20
- height : 150 px ;
20
+ height : 180 px ;
21
21
padding : 20px ;
22
22
color : white ;
23
23
text-align : center ;
32
32
li {
33
33
margin : 15px 0px ;
34
34
}
35
- code {
36
- border-radius : 3px ;
37
- padding : 2px 10px ;
38
- font-size : 17px ;
39
- margin-right : 10px ;
40
- background-color : rgba (222 , 222 , 222 , 0.34 );
41
- border : 1px solid #cccccc ;
42
- color : #868686 ;
43
- }
35
+ }
36
+
37
+ code {
38
+ border-radius : 3px ;
39
+ padding : 2px 10px ;
40
+ font-size : 17px ;
41
+ margin-right : 10px ;
42
+ background-color : rgba (222 , 222 , 222 , 0.34 );
43
+ border : 1px solid #cccccc ;
44
+ color : #868686 ;
44
45
}
Original file line number Diff line number Diff line change 18
18
line-height : 20px ;
19
19
font-weight : 100 ;
20
20
color : # e68484 ;
21
+ }
22
+
23
+ .command {
24
+ margin : 40px 0px 50px 0 ;
25
+ }
26
+
27
+ .readmeLink {
28
+ font-size : 18px ;
29
+ }
30
+
31
+ .experimental {
32
+ font-size : 12px ;
33
+ font-weight : 100 ;
21
34
}
You can’t perform that action at this time.
0 commit comments