0.0.5 • Published 2 years ago
crypto-image-name v0.0.5
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) |