Skip to content
No description, website, or topics provided.
JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.babelrc
.editorconfig
.gitignore
README.md
package.json

README.md

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)
You can’t perform that action at this time.