Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Multiple Steal plugins in one?

$
0
0
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?
  1. //var css  = require("$css");
  2. var less = require("$less");
  3. var myth = require("myth");  // path set in stealconfig.js

  4. exports.instantiate = less.instantiate;
  5. exports.buildType = "css";

  6. exports.translate = function(load)  {
  7.    return Promise.resolve(less.translate(load)).then(function(css)  {
  8.        return myth(css);
  9.    });
  10. };

Viewing all articles
Browse latest Browse all 3491

Trending Articles