git ssb

0+

cel-desktop / ssb-pkg



Tree: 8f4b43a09aab9801bf28987edd59c2e366180327

Files: 8f4b43a09aab9801bf28987edd59c2e366180327 / test / test-79-npm / stylus / stylus.js

410 bytesRaw
1'use strict';
2
3var path = require('path');
4var stylus = require('stylus');
5var s = '@require "external.css"';
6var opts = { filename: 'index.css', paths: [ __dirname ] };
7var dep = stylus(s, opts).deps()[0];
8if (path.basename(dep) === 'external.css') {
9 stylus.render(s, opts, function (error, css) {
10 if (error) return;
11 if (css === '@import "external.css";\n') {
12 console.log('ok');
13 }
14 });
15}
16

Built with git-ssb-web