https://github.com/myxvisual/webpack-build-dll-plugin
📦 Simplifies run build dll reference for your webpack project.
https://github.com/myxvisual/webpack-build-dll-plugin
Last synced: 3 months ago
JSON representation
📦 Simplifies run build dll reference for your webpack project.
- Host: GitHub
- URL: https://github.com/myxvisual/webpack-build-dll-plugin
- Owner: myxvisual
- License: mit
- Created: 2017-03-01T05:36:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-09-07T15:43:53.000Z (almost 4 years ago)
- Last Synced: 2025-04-16T17:26:11.910Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 30.3 KB
- Stars: 7
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/webpack-build-dll-plugin)
[](https://opensource.org/licenses/mit-license.php)
[](https://github.com/myxvisual/webpack-build-dll-plugin)
[](https://www.npmjs.com/package/webpack-build-dll-plugin)
[](https://www.npmjs.com/package/webpack-build-dll-plugin)Installation
------------
Install the plugin with npm:
```shell
$ npm i webpack-build-dll-plugin -D
```
Basic Usage
-----------```javascript
var WebpackBuildDllPlugin = require('webpack-build-dll-plugin');
var webpackConfig = {
entry: 'index.js',
output: {
path: 'dist',
filename: 'index_bundle.js'
},
plugins: [
// Add plugin BuildPlugin before your DllReference plugin.
new WebpackBuildDllPlugin({
// dllConfigPath: required, your Dll Config Path, support absolute path.
dllConfigPath: './webpack.dll.config.js',
// forceBuild: default is {false}, when dependencies change, will rebuild DllReference files
// if {true} it will build DllReference in once upon starting Webpack.
forceBuild: false
}),
new webpack.DllReferencePlugin({
context: `./${outputPath}`,
manifest: require(`./${outputPath}/${publicPath}/vendors-manifest${__DEV__ ? '.dev' : '.prod'}.json`)
})
]
};
```