posthtml-plugin-dynamic
v1.0.2
Published
------------------------
Downloads
4
Readme
posthtml-plugin-dynamic
posthtml plugin get a ability for dynamic add change node.
Install
npm i --save-dev posthtml-plugin-dynamic
Usage
posthtml.config.js
module.exports = {
walk(node, filePath) {
// you can dynamic change the node
// support return Promise<node>
return node
}
}