mako-myth

0.5.0 • Public • Published

mako-myth

A mako plugin that compiles CSS code using myth.

npm version npm dependencies npm dev dependencies build status

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.

Readme

Keywords

none

Package Sidebar

Install

npm i mako-myth

Weekly Downloads

4

Version

0.5.0

License

MIT

Last publish

Collaborators

  • dominicbarnes