steal-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
- Work around inevitable redundancies with CSS3 variables when Myth ceases to transpile them