Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

gulp-stylist

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-stylist

Gulp plugin for stylist

latest
Source
npmnpm
Version
1.2.1
Version published
Maintainers
1
Created
Source

gulp-stylist

Usage

The plugin accepts two optional arguments.

dest

A folder relative to the current working dir where the styles will be extracted.

If not provided, every selector will be appended to a file named after the file it was extracted from. For instance, index.html without the dest option will produce a index.css, some/other/page.html will yield a some/other/page.css.

options

This is relayed to stylist, the values are the same. See the stylist repo for the available options.

var gulp = require("gulp")
var stylist = require("./index")

gulp.task("default", function(  ){

  // extract styles to another dir
  // creates a structure identical to the template root
  gulp.src("test/view/**/*.dust")
    .pipe(stylist("test/style/", {
      ignore: "test/style/**/*.css"
    }))

  // put stylesheets next to the templates
  gulp.src("test/view/**/*.dust")
    .pipe(stylist())
})

Licence

MIT

Keywords

css

FAQs

Package last updated on 19 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts