File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
src/content/configuration Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ module.exports = {
79
79
filename: ' pages/personal.js' ,
80
80
dependOn: ' shared' ,
81
81
chunkLoading: ' jsonp' ,
82
+ asyncChunks: true , // Create async chunks that are loaded on demand.
82
83
layer: ' name of layer' , // set the layer for an entry point
83
84
},
84
85
},
Original file line number Diff line number Diff line change @@ -37,6 +37,24 @@ The top-level `output` key contains a set of options instructing webpack on how
37
37
38
38
The same as [ ` output.filename ` ] ( #outputfilename ) but for [ Asset Modules] ( /guides/asset-modules/ ) .
39
39
40
+ ## output.asyncChunks
41
+
42
+ ` boolean = true `
43
+
44
+ Create async chunks that are loaded on demand.
45
+
46
+ ** webpack.config.js**
47
+
48
+ ``` javascript
49
+ module .exports = {
50
+ // ...
51
+ output: {
52
+ // ...
53
+ asyncChunks: true ,
54
+ },
55
+ };
56
+ ```
57
+
40
58
## output.auxiliaryComment
41
59
42
60
W> Prefer to use [ ` output.library.auxiliaryComment ` ] ( #outputlibraryauxiliarycomment ) instead.
You can’t perform that action at this time.
0 commit comments