eyeglass-debug
v0.0.1
Published
Debugging. For Sass.
Downloads
2
Readme
eyeglass-debug
Provides a wrapper around debug
to allow debugging messages within an eyeglass module.
Usage
@import "eyeglass-debug";
@include debug("my-module", "my message");
// debug as a mixin:
@include debug($namespace, $message);
// debug as a function:
$tmp: debug($namespace, $message);
Enabling a namespace
By default, namespaces are disabled. You'll have to enable the namespace to see the log messages.
via options
var eyeglass = require("eyeglass");
var options = eyeglass({
debug: {
enable: ["foo", "bar"] // "foo" and "bar" namespaces will be enabled
}
});
via Sass
@include debug-enable("foo");