xiaofuzi / rollup-plugin-md

a markdown rollup plugin.
23 stars 3 forks source link

Allow disable marked through options.marked #2

Closed pyoner closed 3 years ago

pyoner commented 6 years ago

To disable marked set options.marked to false

BobKerns commented 3 years ago

I think this may not be very useful? Commenting here for the benefit of anyone looking to do this kind of thing.

When I want to disable a plugin, I just don't include it in the plugins, like this:

  {
     plugins: [
       ...(disable ? [] : [plugin(...)])
    ]
}

This works for any plugin, or any group of plugins.