Beispiel #1
0
    function compile(str: string, path: string) {
        console.log(str);
        console.log(path);

        return stylus(str)
            .set('filename', path)
            .set('compress', true)
            .use(nib());
    }
Beispiel #2
0
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))
});
Beispiel #3
0
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); }