3.2.1 • Published 6 years ago

dll-link-webpack-plugin v3.2.1

Weekly downloads
285
License
MIT
Repository
github
Last release
6 years ago

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.

中文 README

Install

$ yarn add dll-link-webpack-plugin -D

Basic 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.js

This will automatically generate the DLL file. For more usage, see examples.

Configuration

  • htmlMode: true | false This is useful when you are using html-webpack-plugin. The DLL file will be included in the output html file. (default is false)
  • assetsMode: true | false Emit the DLL file as webpack assets file. (default is false)
  • appendVersion: true | false Append a DLL hash version to your webpack entry filenames. (default is false)

Example for above options:

module.exports = {
    // ...
    plugins: [
        new DllLinkPlugin({
            config: require("webpack.dll.config.js"),
            appendVersion: true,
            assetsMode: true,
            htmlMode: true
        })
    ]
};
3.2.1

6 years ago

3.2.0

6 years ago

3.1.0

6 years ago

3.0.12

6 years ago

3.0.11

6 years ago

3.0.10

6 years ago

3.0.9

6 years ago

3.0.8

6 years ago

3.0.7

6 years ago

3.0.6

6 years ago

3.0.5

6 years ago

3.0.4

6 years ago

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0-beta

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.0

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago