1.0.2 • Published 4 years ago
posthtml-plugin-dynamic v1.0.2
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
}
}