dll-link-webpack-plugin v3.2.1
Dll Link Plugin
A webpack plugin that simplifies creation of webpack DLL file. It is based on DllReferencePlugin. And you can see the difference here.
Install
$ yarn add dll-link-webpack-plugin -DBasic Usage
Replace DllReferencePlugin with DllLinkPlugin in your webpack.config.js
var DllLinkPlugin = require("dll-link-webpack-plugin");
module.exports = {
// ...
plugins: [
new DllLinkPlugin({
config: require("webpack.dll.config.js")
})
]
};And directly run
$ webpack --config webpack.config.jsThis will automatically generate the DLL file. For more usage, see examples.
Configuration
htmlMode:true|falseThis is useful when you are using html-webpack-plugin. The DLL file will be included in the output html file. (default isfalse)assetsMode:true|falseEmit the DLL file as webpack assets file. (default isfalse)appendVersion:true|falseAppend a DLL hash version to your webpack entry filenames. (default isfalse)
Example for above options:
module.exports = {
// ...
plugins: [
new DllLinkPlugin({
config: require("webpack.dll.config.js"),
appendVersion: true,
assetsMode: true,
htmlMode: true
})
]
};7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago