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
The `DllPlugin`and`DllReferencePlugin`provide means to split bundles in a way that can drastically improve build time performance. The term "DLL" stands for Dynamic-link library which was originally introduced by Microsoft.
This plugin is used in a separate webpack configuration exclusively to create a dll-only-bundle. It creates a `manifest.json`file, which is used by the [`DllReferencePlugin`](#dllreferenceplugin)to map dependencies.
-`context` (optional): context of requests in the manifest file (defaults to the webpack context.)
25
-
-`format` (boolean = false): If `true`, manifest json file (output) will be formatted.
26
-
-`name`: name of the exposed dll function ([TemplatePaths](https://github.com/webpack/webpack/blob/master/lib/TemplatedPathPlugin.js): `[hash]` & `[name]`)
27
-
-`path`: __absolute path__ to the manifestjson file (output)
28
-
-`entryOnly` (boolean = true): if `true`, only entry points will be exposed
Creates a `manifest.json`which is written to the given `path`. It contains mappings from require and import requests to module ids. It is used by the `DllReferencePlugin`.
The content of the dll is mapped to the current directory. If a required file matches a file in the dll (after resolving), then the file from the dll is used instead.
Because this happens after resolving every file in the dll bundle, the same paths must be available for the consumer of the dll bundle. i.e. if the dll contains `lodash` and the file `abc`, `require('lodash')`and`require('./abc')`will be used from the dll, rather than building them into the main bundle.
0 commit comments