1.2.1 • Published 10 years ago

gulp-stylist v1.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

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

1.2.1

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.3

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago