# @sumotto/html-href-to-relative-webpack-plugin

> Webpack plugin for replace to relative path in HTML files.

Latest version **1.0.0** (published 2021-11-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @sumotto/html-href-to-relative-webpack-plugin
pnpm add @sumotto/html-href-to-relative-webpack-plugin
yarn add @sumotto/html-href-to-relative-webpack-plugin
bun add @sumotto/html-href-to-relative-webpack-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-11-29 |
| First published | 2021-11-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sigalin Kirill |
| Maintainers | sumotto |
| Keywords | html, href, relative, webpack, plugin |

## Links

- npm: https://www.npmjs.com/package/@sumotto/html-href-to-relative-webpack-plugin
- Repository: https://github.com/SumoTTo/html-href-to-relative-webpack-plugin
- Homepage: https://github.com/SumoTTo/html-href-to-relative-webpack-plugin#readme
- Issues: https://github.com/SumoTTo/html-href-to-relative-webpack-plugin/issues
- Funding: https://ko-fi.com/SumoTTo
- npm.io page: https://npm.io/package/@sumotto/html-href-to-relative-webpack-plugin

## Dependencies (1)

- [webpack-sources](https://npm.io/package/webpack-sources.md) latest

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-11-29

## README

# HTML Href to Relative Webpack Plugin

[Webpack](https://github.com/webpack/webpack#readme) plugin for replace `<a href="/">` to relative path in HTML files.

## Installation

You can install the package as follows:

```sh
npm install @sumotto/html-href-to-relative-webpack-plugin --save-dev

# or

yarn add @sumotto/html-href-to-relative-webpack-plugin --dev
```

## Usage

Require the plugin in your Webpack config:

```js
const HtmlHrefToRelativePlugin = require( '@sumotto/html-href-to-relative-webpack-plugin' );

// or

import HtmlHrefToRelativePlugin from '@sumotto/html-href-to-relative-webpack-plugin';
```

Add the plugin to your webpack configuration's `plugins` array.
If you use [HTML Webpack Plugin](https://github.com/jantimon/html-webpack-plugin#readme)) then this plugin should go after him:

```js
plugins: [
	new HtmlWebpackPlugin(), // optional
	new HtmlHrefToRelativePlugin(),
]
```

## License

MIT License

---
_Source: https://npm.io/package/@sumotto/html-href-to-relative-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
