@poi/plugin-html-entry
This is a built-in Poi plugin which makes Poi support HTML entrypoint.
Last updated 7 years ago by egoist .
MIT · Original npm · Tarball · package.json
$ npm install @poi/plugin-html-entry 
SYNC missed versions from official npm registry.

@poi/plugin-html-entry

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

Features

Process local scripts and styles

<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, see here for available template data.

License

MIT © EGOIST

Current Tags

  • 0.2.1-canary.585.f015dbf.0                                ...           canary (7 years ago)
  • 0.2.3                                ...           latest (6 years ago)

11 Versions

  • 0.2.3                                ...           6 years ago
  • 0.2.2                                ...           7 years ago
  • 0.2.1                                ...           7 years ago
  • 0.2.1-canary.585.f015dbf.0                                ...           7 years ago
  • 0.2.0                                ...           8 years ago
  • 0.1.4                                ...           8 years ago
  • 0.1.3                                ...           8 years ago
  • 0.1.2                                ...           8 years ago
  • 0.1.1                                ...           8 years ago
  • 0.1.0                                ...           8 years ago
  • 0.0.0                                ...           8 years ago
Downloads
Total 28
Today 0
This Week 1
This Month 16
Last Day 0
Last Week 4
Last Month 12
Dependencies (4)
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE