function compile(str: string, path: string) { console.log(str); console.log(path); return stylus(str) .set('filename', path) .set('compress', true) .use(nib()); }
gulp.task('stylus', () => { return gulp.src('./app/app.styl') .pipe(plumber()) .pipe(stylus({ use: [axis(), nib()], import: process.cwd() + '/bower_components/material-colors/dist/colors.styl' })) .pipe(gulp.dest(release ? RELEASE_DIR : BUILD_DIR)) });
var compile = function (str, path) { return stylus(str) .set('filename', path) .use(nib()); };
compile: (str: string, path: string) => { return stylus(str).use(nib()).set("filename", path).set("compress", true); }