# @poi/plugin-html-entry

> This is a built-in Poi plugin which makes Poi support HTML entrypoint.

Latest version **0.2.3** (published 2020-07-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @poi/plugin-html-entry
pnpm add @poi/plugin-html-entry
yarn add @poi/plugin-html-entry
bun add @poi/plugin-html-entry
```

## 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.2.3 |
| Published | 2020-07-13 |
| First published | 2019-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 14.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | egoist, poi-owner, rem |

## Links

- npm: https://www.npmjs.com/package/@poi/plugin-html-entry
- npm.io page: https://npm.io/package/@poi/plugin-html-entry

## Dependencies (4)

- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [chokidar](https://npm.io/package/chokidar.md) ^2.0.4
- [fs-extra](https://npm.io/package/fs-extra.md) ^9.0.0
- [posthtml](https://npm.io/package/posthtml.md) ^0.13.0

## Recent versions

- 0.2.3 (latest) — 2020-07-13
- 0.2.1-canary.585.f015dbf.0 (canary) — 2019-07-04
- 0.2.2 — 2020-04-30
- 0.2.1 — 2019-08-09
- 0.2.0 — 2019-05-23
- 0.1.4 — 2019-04-08
- 0.1.3 — 2019-04-06
- 0.1.2 — 2019-03-12
- 0.1.1 — 2019-01-24
- 0.1.0 — 2019-01-24
- 0.0.0 — 2019-01-24

## README

# @poi/plugin-html-entry

This is a built-in Poi plugin which makes Poi support HTML entrypoint.

## Features

### Process local scripts and styles

```html
<link rel="stylesheet" href="./style.css">
<script src="./main.js"></script>
```

Note that only relative paths will be processed by webpack, which means you can use absolute paths like `https://...` or `/static/foo.css` to reference external resources.

### Process certain HTML attributes

It processes certain HTML attributes:

- `<img>`: `src`
- `<image>`: `xlink:href`
- `<video>`: `src` `poster`
- `<source>`: `src`

### Reloading

Modifing HTML entry will trigger a full reload.

### Template Interpolations

Your HTML entry will also be processed by [lodash.template](https://lodash.com/docs/4.17.11#template), see [here](https://poi.js.org/guide/custom-html-template.html#template-data) for available template data.

## License

MIT &copy; EGOIST

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