# html-webpack-replace-var-plugin

> replace variable in server template

Latest version **1.0.1** (published 2017-05-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install html-webpack-replace-var-plugin
pnpm add html-webpack-replace-var-plugin
yarn add html-webpack-replace-var-plugin
bun add html-webpack-replace-var-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.1 |
| Published | 2017-05-12 |
| First published | 2017-05-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | gssify@gmail.com |
| Maintainers | gssan |
| Keywords | HtmlWebpackPlugin, HtmlWebpackReplaceVarPlugin |

## Links

- npm: https://www.npmjs.com/package/html-webpack-replace-var-plugin
- Repository: https://github.com/gssan/html-webpack-replace-var-plugin
- Homepage: https://github.com/gssan/html-webpack-replace-var-plugin#readme
- Issues: https://github.com/gssan/html-webpack-replace-var-plugin/issues
- npm.io page: https://npm.io/package/html-webpack-replace-var-plugin

## 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.1 (latest) — 2017-05-12
- 1.0.0 — 2017-05-12

## README

# html-webpack-replace-var-plugin ![](https://badge.fury.io/js/html-webpack-replace-var-plugin.svg) ![issues](https://img.shields.io/github/issues/gssan/html-webpack-replace-var-plugin.svg) ![stars](https://img.shields.io/github/stars/gssan/html-webpack-replace-var-plugin.svg) ![MIT](https://img.shields.io/badge/license-MIT-blue.svg)
> Replace variables extension for the HTML Webpack Plugin

This is an extension plugin for the webpack plugin html-webpack-plugin - a plugin that can replace variables in server template

## Installation
Install the plugin with npm:

```bash
$ npm install html-webpack-replace-var-plugin
```

## Basic Usage

Require the plugin in your webpack config:

```js
var HtmlWebpackReplaceVarPlugin = require('html-webpack-replace-var-plugin');
```

Add the plugin to your webpack config as follows:

```js
plugins: [
  new HtmlWebpackPlugin(),
  new HtmlWebpackReplaceVarPlugin()
]
```

The above configuration will actually do nothing due to the configuration defaults.

you can set options like this:

```js
plugins: [
  new HtmlWebpackPlugin(),
  new HtmlWebpackReplaceVarPlugin({
    '<%': '{{',
    '%>': '}}'
  })
]
```

---
_Source: https://npm.io/package/html-webpack-replace-var-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
