metalsmith-myth

A Myth plugin for Metalsmith.

Usage no npm install needed!

<script type="module">
  import metalsmithMyth from 'https://cdn.skypack.dev/metalsmith-myth';
</script>

README

metalsmith-myth

A Metalsmith plugin to preprocess CSS files with Myth.

Installation

$ npm install metalsmith-myth

CLI Usage

Install via npm and then add the metalsmith-myth key to your metalsmith.json plugin, like so:

{
  "plugins": {
    "metalsmith-myth": true
  } 
}

JavaScript Usage

var myth = require('metalsmith-myth');

metalsmith.use(myth(options));

Options

myth({...}) Type Description
files String Minimatch pattern of files to match. Default: *.css.

Plus the options supported by Myth itself excluding source which is set by the plugin.


Copyright © 2014 Kasper Kronborg Isager. Licensed under the terms of the MIT license.