mako-html
v1.2.0
Published
A mako plugin for parsing HTML files for dependencies.
Downloads
51
Readme
mako-html
A plugin bundle for parsing HTML files for other front-end asset 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
)