1.2.0 • Published 8 years ago
mako-html v1.2.0
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:
imageswhether or not to process image dependencies (default:true)stylesheetswhether or not to process stylesheet dependencies (default:true)scriptswhether or not to process script dependencies (default:true)