1. @poi/plugin-html-entry
This is a built-in Poi plugin which makes Poi support HTML entrypoint.
@poi/plugin-html-entry
Package: @poi/plugin-html-entry
Last modified: Wed, 06 Apr 2022 15:38:49 GMT
Version: 0.2.3
License: MIT
Downloads: 2,444

Install

npm install @poi/plugin-html-entry
yarn add @poi/plugin-html-entry

@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

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code