Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bosens-china/md-imgage-error-loader
Markdown invalid picture replacement
https://github.com/bosens-china/md-imgage-error-loader
error markdown webpack-loader
Last synced: 1 day ago
JSON representation
Markdown invalid picture replacement
- Host: GitHub
- URL: https://github.com/bosens-china/md-imgage-error-loader
- Owner: bosens-China
- License: mit
- Created: 2020-04-20T04:33:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-09T15:23:51.000Z (almost 4 years ago)
- Last Synced: 2024-11-14T01:46:47.752Z (1 day ago)
- Topics: error, markdown, webpack-loader
- Language: JavaScript
- Size: 171 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
# md-imgage-error-loader
[中文文档](/README_ZH.md)
Process image files that do not exist in the `.md` file and replace them
## Installation
```sh
npm i md-imgage-error-loader
```## Usage
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
},
},
},
];
```## Agreement
MIT License