# webpack-entry-hash-plugin

> Modify the target file that references the webpack entry

Latest version **0.0.5** (published 2017-08-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-entry-hash-plugin
pnpm add webpack-entry-hash-plugin
yarn add webpack-entry-hash-plugin
bun add webpack-entry-hash-plugin
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2017-08-21 |
| First published | 2017-07-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | smilingxinyi |

## Links

- npm: https://www.npmjs.com/package/webpack-entry-hash-plugin
- Repository: https://github.com/SmilingXinyi/entry-hash-plugin
- Homepage: https://github.com/SmilingXinyi/entry-hash-plugin#readme
- Issues: https://github.com/SmilingXinyi/entry-hash-plugin/issues
- npm.io page: https://npm.io/package/webpack-entry-hash-plugin

## Recent versions

- 0.0.5 (latest) — 2017-08-21
- 0.0.4 — 2017-07-28
- 0.0.3 — 2017-07-27
- 0.0.2 — 2017-07-24

## README

# webpack-entry-hash-plugin
Modify the target file that references the webpack entry

## Usage

``` javascript
module.exports = {
    entry: ['./index.js', './index.html'],
    /*
    entry: {
        index: ['./index.js', './index.html']
    }
    */
    ...
    plugins: {
        new EntryPlugins({
            file: './index.html',
            // or template
            toReplace: 'main.js',
            // optional   toReplace: 'main.js?[name]=index',
            publicPath: 'xxxx.com'
            // optional   template example: {%$data.url%}
        })
    }
    ...
}

```

> options

- file: the exported destination file
- toReplace: replacement text
    - ?[name] = key : webpack replace [name]
- publicPath: prefix,instead of the output.publicPath

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