mirror of
https://github.com/dzeiocom/components.git
synced 2025-07-25 06:19:50 +00:00
Added back stylus utils
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
11
src/dzeio/stylusUtils.js
Normal file
11
src/dzeio/stylusUtils.js
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
// See https://github.com/stylus/stylus/issues/1872#issuecomment-86553717
|
||||
var stylus = require('stylus');
|
||||
|
||||
module.exports = function() {
|
||||
return function(style) {
|
||||
style.define('file-exists', function(path) {
|
||||
return !!stylus.utils.lookup(path.string, this.paths);
|
||||
});
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user