mako-html

1.2.0 • Public • Published

mako-html

A plugin bundle for parsing HTML files for other front-end asset dependencies.

npm version npm dependencies npm dev dependencies

Purpose

Parses HTML using deps-html, adding external resources to the dependency tree. Currently, the supported resources include:

  • scripts (via script[src])
  • stylesheets (via link[rel="stylesheet"])
  • images (via img[src])

This plugin only adds the aforementioned files to the dependency tree, the rest of the build logic is deferred to other plugins, such as mako-js and mako-css.

API

html([options])

Initializes the plugin, available options include:

  • images whether or not to process image dependencies (default: true)
  • stylesheets whether or not to process stylesheet dependencies (default: true)
  • scripts whether or not to process script dependencies (default: true)

Readme

Keywords

Package Sidebar

Install

npm i mako-html

Weekly Downloads

2

Version

1.2.0

License

MIT

Last publish

Collaborators

  • dominicbarnes