You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+72Lines changed: 72 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -69,5 +69,77 @@ node server.js
69
69
└── package.json # package info
70
70
```
71
71
72
+
## How The `Multiple Page` Works ?(Assumed that you have the basic knowlege of [webpack](https://github.com/webpack/webpack))
73
+
74
+
1. Firstly, we need to get the `entries` and `chunks`
75
+
76
+
* The constant `entries` is an [Object](https://webpack.js.org/configuration/entry-context/#entry) type, it's prop is the `chunk` and it's value is the relative path of the entry js file
77
+
* The constant `chunks` is an Array type for the [CommonsChunkPlugin](https://webpack.js.org/plugins/commons-chunk-plugin/)
78
+
79
+
This step needs a package called: [glob](https://github.com/isaacs/node-glob)
0 commit comments