@poi/plugin-html-entry
This is a built-in Poi plugin which makes Poi support HTML entrypoint.
Last updated 2 months ago by egoist .
MIT · Original npm · Tarball · package.json
$ cnpm 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 (16 days ago)
  • 0.2.0                                ...           latest (2 months ago)

8 Versions

  • 0.2.1-canary.585.f015dbf.0                                ...           16 days ago
  • 0.2.0                                ...           2 months ago
  • 0.1.4                                ...           3 months ago
  • 0.1.3                                ...           3 months ago
  • 0.1.2                                ...           4 months ago
  • 0.1.1                                ...           6 months ago
  • 0.1.0                                ...           6 months ago
  • 0.0.0                                ...           6 months ago
Downloads
Today 13
This Week 56
This Month 212
Last Day 7
Last Week 58
Last Month 174
Dependencies (4)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |