1.0.0 • Published 1 year ago
crypto-image-name v1.0.0
crypto image name
Change the image name inside the entry folder using crypto hash. When changing the image name, the image path written in the files(css, js, html, txt, vue, jsx) inside the folder is also changed.
use as cli
install
$ npm install -g crypto-image-nameuse
$ cryptoimageuse as webpack plugin
install
$ npm install -D crypto-image-nameuse
// webpack.config.js
const cryptoImageName = require('crypto-image-name');
plugins:[
new cryptoImageName()
]options
| Name | Default | description |
|---|---|---|
| entryPath | './dist' | |
| outputPath | './dist-crypto' | |
| privateKey | 'mkt' | |
| exclude | exclude pattern(regx) |