I'm writing a plugin that enables the use of another CSS pre-processor.
I currently have it working with the $less plugin, but I'd also like to
set it up with the $css plugin. Is this possible in the same file?
- //var css = require("$css");
- var less = require("$less");
- var myth = require("myth"); // path set in stealconfig.js
-
- exports.instantiate = less.instantiate;
- exports.buildType = "css";
-
- exports.translate = function(load) {
- return Promise.resolve(less.translate(load)).then(function(css) {
- return myth(css);
- });
- };