crypto-image-name
v1.0.0
Published
crypto image name
Downloads
3
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-name
use
$ cryptoimage
use as webpack plugin
install
$ npm install -D crypto-image-name
use
// 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) |