File tree Expand file tree Collapse file tree 3 files changed +47
-20
lines changed Expand file tree Collapse file tree 3 files changed +47
-20
lines changed Original file line number Diff line number Diff line change 4
4
& __viz {
5
5
position :relative ;
6
6
display :flex ;
7
- height :100vh ;
8
- min-height :600px ;
9
- max-height :900px ;
7
+ height :500px ;
10
8
}
11
9
12
10
& __modules ,
Original file line number Diff line number Diff line change @@ -20,24 +20,12 @@ export default props => {
20
20
</ Container >
21
21
</ section >
22
22
< section className = "splash__viz" >
23
- < div className = "splash__modules" >
24
-
25
- </ div >
26
-
27
23
< div className = "splash__icon" >
28
24
< Cube className = "splash__cube" depth = { 150 } />
29
25
</ div >
30
26
31
- < div className = "splash__output" >
32
-
33
- </ div >
34
-
35
27
< span className = "splash__headline" >
36
- webpack transforms your
37
- < Link to = "/concepts/modules" > modules</ Link >
38
- into production-ready
39
- < Link to = "/concepts/output" > bundles</ Link >
40
- and assets
28
+ Who said front-end code can't be modular?
41
29
</ span >
42
30
</ section >
43
31
Original file line number Diff line number Diff line change 1
- ---
2
- title : Splash Content
3
- ---
1
+ ** index.js**
4
2
5
- Still debating what to do with this section.
3
+ ``` js
4
+ const foo = require (' ./foo.js' )
5
+
6
+ foo .bar ()
7
+ ```
8
+
9
+ ** foo.js**
10
+
11
+ ``` js
12
+ module .exports = {
13
+ bar : function () {
14
+ //
15
+ }
16
+ }
17
+ ```
18
+
19
+ ## Bundle your [ modules] ( /concepts/modules ) with webpack.
20
+
21
+ ** webpack.config.js**
22
+
23
+ ``` js
24
+ module .exports = {
25
+ entry: ' ./index.js' ,
26
+ output: {
27
+ path: ' bundle.js'
28
+ }
29
+ }
30
+ ```
31
+
32
+ ** page.html**
33
+
34
+ ``` html
35
+ <html >
36
+ <head >
37
+ ...
38
+ </head >
39
+ <body >
40
+ ...
41
+ <script src =" /bundle.js" ></script >
42
+ </body >
43
+ </html >
44
+ ```
45
+
46
+ ## It's really that simple. [ Get started] ( /get-started ) now!
You can’t perform that action at this time.
0 commit comments