start-stylus

0.0.2 • Public • Published

start-stylus

stylus task for Start.

Install

npm i -S start-stylus

Usage

import start from 'start';
import reporter from 'start-pretty-reporter';
import files from 'start-files';
import clean from 'start-clean';
import read from 'start-read';
import stylus from 'start-stylus';
import rename from 'start-rename';
import write from 'start-write';
 
import autoprefixer from 'autoprefixer';
 
export function build() {
    return start(reporter())(
        files('build/'),
        clean(),
        files('lib/**/*.styl'),
        read(),
        stylus(),
        write('build/')
    );
}

This task relies on [{ path, data, map }] input and provides the same, see documentation for details.

Arguments

stylus(options)

To use plugins like rupture or include sourcemaps or any other option for stylus, just do it like that:

  const options = {
    use: [rupture()],
    sourcemap: true,
    ...
  }

[options](http://stylus-lang.com/docs/js.html)

Readme

Keywords

Package Sidebar

Install

npm i start-stylus

Weekly Downloads

3

Version

0.0.2

License

MIT

Last publish

Collaborators

  • wcastand