steal-myth

Pre-process your StealJS project's CSS with Myth.


Keywords
canjs, css, less, myth, steal
License
MIT
Install
bower install steal-myth

Documentation

steal-myth

Pre-process your StealJS project's CSS with Myth.

Use with or without Less.js. If using with, Myth will be processed last.

Getting Started

This plugin requires Steal ^0.3 and any version of Myth. Less is already bundled with Steal.

Configuration

System.config({
	
	// Path to Myth (not steal-myth)
	paths: {
		"myth": "path/to/myth.js"
	},
	
	// Load steal-myth in place of the default CSS and/or Less plugins
	ext: {
		"css":  "path/to/steal-myth/steal-myth-css",
		"less": "path/to/steal-myth/steal-myth-less"
	},
	
	// Tell Steal what build format Myth is
	meta: {
		myth: { format:"cjs" }
	}
});

Usage

Just point to your stylesheets as normal:

import "./file.less!";
import "./file.css!";
define(["./file.less!","./file.css!"], function(){ ... });

etc.

Roadmap Features