mako-myth
A mako plugin that compiles CSS code using myth.
Usage
var mako = require('mako');
var text = require('mako-text');
var myth = require('mako-myth');
var css = require('mako-css');
mako()
// read from disk
.use(text('css'))
// compile css with myth
.use(myth())
// assemble npm modules
.use(css())
// run the builder
.build('./index.css')
.then(function () {
// done!
});
API
myth()
This plugin does not currently expose any configuration, this will likely change soon.
Dependencies
This requires some sort of read plugin that populates file.contents
with a string.
Effects
For each file processed, it will compile file.contents
from input myth CSS into vanilla CSS.
Currently, this plugin is designed to be compatible with mako-css,
but interoperability will come in the future.