md-imgage-error-loader
Version:
Markdown invalid picture replacement
37 lines (27 loc) • 528 B
Markdown
[中文文档](/README_ZH.md)
Process image files that do not exist in the `.md` file and replace them
```sh
npm i md-imgage-error-loader
```
webpack
```js
// ... omit some configuration
use: [
{
loader: 'md-imgage-error-loader',
options: {
// A string or a function that accepts a replacement array
src: 'http://xxxx.png',
// or
src: (currentName, currentPath) => {
// xxx
},
},
},
];
```
MIT License