crypto-image-name
v1.0.0
Published
crypto image name
Downloads
2
Readme
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) |
