posthtml-when

PostHTML plugin for conditional plugins

Usage no npm install needed!

<script type="module">
  import posthtmlWhen from 'https://cdn.skypack.dev/posthtml-when';
</script>

README

posthtml-when

Build Status Coverage Status npm version Dependency Status devDependency Status

PostHTML plugin for conditional plugins.

Usage

var posthtml = require('posthtml');
var when = require('posthtml-when');

posthtml()
  .use(when(conditional, plugin()));