# autodll-webpack-plugin
**Repository Path**: mirrors_leecade/autodll-webpack-plugin
## Basic Information
- **Project Name**: autodll-webpack-plugin
- **Description**: Webpack's DllPlugin without the boilerplate
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-09
- **Last Updated**: 2026-02-07
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
[](https://travis-ci.org/asfktz/autodll-webpack-plugin)
[](https://ci.appveyor.com/project/asfktz/autodll-webpack-plugin)
[](https://www.npmjs.com/package/autodll-webpack-plugin)
[](https://gitter.im/autodll-webpack-plugin/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
# Important Note
Now, that webpack 5 planning to [support caching out-of-the-box](https://github.com/webpack/webpack/issues/6527),
AutoDllPlugin will soon be obsolete.
In the meantime, I would like to recommend Michael Goddard's [hard-source-webpack-plugin](https://github.com/mzgoddard/hard-source-webpack-plugin),
which seems like webpack 5 is going to use internally.
| Option | Type | Default | Description |
|---|---|---|---|
| entry | Object | {} |
The entry points for the DLL's. entry: {
// Create a DLL from NPM modules:
vendor: [
'react',
'react-dom',
'moment',
'lodash'
],
// Create a DLL from a part of your app
// that you rarely change:
admin: [
'./src/admin/index.js'
]
}
|
| filename | String | "[name].js" |
The filename template. Examples:
|
| context | String | process.cwd() |
The base directory, an absolute path, for resolving entry points and loaders from the configuration. Same as webpack's context
It is very important to make sure the context is set correctly, Most of the time, the defaults (the current directory) should work for you, here's how it should work: If your webpack config is stored at the base of your project: ~/my-project/webpack.config.js Set it up like this:
{
context: __dirname
}
If your webpack config is stored in a nested directory: ~/my-project/config/webpack.config.js It should look like this:
{
context: path.join(__dirname, '..')
}
|
| inject | Boolean | false |
By setting inject to true, AutoDLL will inject the DLL bundles into the HTML for you. Note: HtmlWebpackPlugin is required for this feature to work. |
| path | String | "" |
The path for the DLL bundles, relative to webpack's output.publicPath |
| debug | Boolean | false |
Use debug mode to see more clearly what AutoDLL is doing. |
| plugins | Array | [] |
Plugins for the DLL compiler. Same as webpack's plugins. plugins: [ new webpack.optimize.UglifyJsPlugin() ] |
| inherit | Boolean/Function | false |
Inherit from the parent config.
A valid use-case would be if you have devtool: "source-maps" in your webpack config and wanted source maps to be created for the DLL bundle as well.
However, this does not inherit plugins from the parent config and inheriting loaders are buggy too(see #37).
It can also be a function to inherit only the desired properties.
function inherit(webpackConfig) {
// Return object with desired properties.
}
To see it action, check out the example.
⚠️ This option is highly experimental! Use with caution and if you face any problems, please open a issue. |