Skip to content
metalsmith plugin for stylus
CoffeeScript JavaScript
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.
.vscode
lib
src
test
.editorconfig
.gitignore
.travis.yml
README.md
package.json

README.md

metalsmith-stylus

build status

A Stylus plugin for Metalsmith.

Installation

npm install metalsmith-styl

Usage

//Without params
var stylus = require('metalsmith-stylus')

Metalsmith(__dirname)
  .use(stylus())
  .build()

//With params
var stylus = require('metalsmith-stylus')

Metalsmith(__dirname)
  .use(stylus({
    master: 'master.styl',
    output: 'app.css',
    filter: '.styl, .stylus, .test'
  }))
  .build()

//With outputDir
var stylus = require('metalsmith-stylus')

Metalsmith(__dirname)
  .use(stylus({
    master: 'master.styl',
    outputDir: '.'
  }))
  .build()

Options

Use any or all of the following:

filter

Extensions that need to be processed

default: .styl, .stylus

master

Name of the master file. File included in this one will not be rendered.

default: null

outputDir

Name of the folder in your build.

default: null (keep the same architecture)

output

Name of the file in your build. Use only if master is specified.

default: null

Todo

Tests

$ mocha

License

MIT License, see LICENSE for details.

You can’t perform that action at this time.