https://github.com/afeiship/webpack-dll-cli
Webpack dll plugin to be a simply cli.
https://github.com/afeiship/webpack-dll-cli
cli cra dll plugin webpack wpkdc
Last synced: 2 months ago
JSON representation
Webpack dll plugin to be a simply cli.
- Host: GitHub
- URL: https://github.com/afeiship/webpack-dll-cli
- Owner: afeiship
- Created: 2016-01-26T10:49:20.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-09-16T06:30:19.000Z (almost 3 years ago)
- Last Synced: 2025-03-08T02:18:35.090Z (over 1 year ago)
- Topics: cli, cra, dll, plugin, webpack, wpkdc
- Language: JavaScript
- Homepage:
- Size: 44.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# webpack-dll-cli
> Webpack dll plugin to be a simply cli.
## installation
```shell
npm i -D webpack webpack-cli@4.9.1
npm i -g @jswork/webpack-dll-cli
```
## usgae
```shell
# 1. create config file
wpkdc -i
# 2.1 generate js dll files
wpkdc
# 2.2 generate css dll file
wpkdc -t=css
```
## help
```
Generate dll files use webpack.DllPlugin.
USAGE
$ wpkdc
OPTIONS
-h, --help show CLI help
-i, --init Generate .webpack.dll.yml file.
-t, --type=(css|js) [default: js] Type of asset(css/js).
-v, --version show CLI version
```
## .webpack.example.dll.yml
```yml
name: template
css:
path: src/assets/libs/css
entry: ./src/assets/styles/index.scss
js:
path: src/assets/libs/js
entry:
venders:
- react
- react-dom
```