File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,11 @@ If your project structure is as follows -
50
50
51
51
``` bash
52
52
webpack src/index.js dist/bundle.js
53
- This will bundle your source code with entry as ` index.js` and the output bundle file will have a path of ` dist` and the filename will be ` bundle.js`
53
+ ```
54
+
55
+ This will bundle your source code with entry as ` index.js ` and the output bundle file will have a path of ` dist ` and the filename will be ` bundle.js `
54
56
57
+ ``` bash
55
58
| Asset | Size | Chunks | Chunk Names |
56
59
| -----------| ---------| -------------| -------------|
57
60
| bundle.js | 1.54 kB | 0 [emitted] | index |
@@ -61,8 +64,11 @@ webpack src/index.js dist/bundle.js
61
64
62
65
``` bash
63
66
webpack index=./src/index.js entry2=./src/index2.js dist/bundle.js
64
- This will form the bundle with both the files as separate entry points.
67
+ ```
68
+
69
+ This will form the bundle with both the files as separate entry points.
65
70
71
+ ``` bash
66
72
| Asset | Size | Chunks | Chunk Names |
67
73
| -----------| ---------| ---------------| ---------------|
68
74
| bundle.js | 1.55 kB | 0,1 [emitted] | index, entry2 |
You can’t perform that action at this time.
0 commit comments