README
posthtml-when
PostHTML plugin for conditional plugins.
Usage
var posthtml = require('posthtml');
var when = require('posthtml-when');
posthtml()
.use(when(conditional, plugin()));
PostHTML plugin for conditional plugins
<script type="module">
import posthtmlWhen from 'https://cdn.skypack.dev/posthtml-when';
</script>
PostHTML plugin for conditional plugins.
var posthtml = require('posthtml');
var when = require('posthtml-when');
posthtml()
.use(when(conditional, plugin()));