Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 days 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 7 years ago)
- Default Branch: master
- Last Pushed: 2021-09-07T15:43:53.000Z (about 3 years ago)
- Last Synced: 2024-04-25T20:42:43.425Z (7 months ago)
- Language: TypeScript
- Homepage:
- Size: 30.3 KB
- Stars: 7
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![npm](https://img.shields.io/npm/v/webpack-build-dll-plugin.svg)](https://www.npmjs.com/package/webpack-build-dll-plugin)
[![MIT Licence](https://img.shields.io/badge/licence-MIT-blue.svg)](https://opensource.org/licenses/mit-license.php)
[![TypeScript](https://img.shields.io/badge/soucre-TypeScript-blue.svg)](https://github.com/myxvisual/webpack-build-dll-plugin)
[![npm](https://img.shields.io/npm/dm/webpack-build-dll-plugin.svg)](https://www.npmjs.com/package/webpack-build-dll-plugin)
[![npm](https://img.shields.io/badge/denpendencies-up--to--date-brightgreen.svg)](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`)
})
]
};
```