@jswork/webpack-dll-cli
v1.0.5
Published
Webpack dll plugin to be a simply cli.
Downloads
5
Maintainers
Readme
webpack-dll-cli
Webpack dll plugin to be a simply cli.
installation
npm i -D webpack webpack-cli
npm i -g @jswork/webpack-dll-cli
usgae
# 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
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