@hugsmidjan/gulp-stylus

0.2.3 • Public • Published

@hugsmidjan/gulp-stylus

npm install --save-dev @hugsmidjan/gulp-stylus

Usage

const [cssBundle, cssWatch] = require('@hugsmidjan/gulp-stylus')(opts);

API / Advanced usage

const stylusTaskFactory = require('@hugsmidjan/gulp-stylus');

const options = {
  // These are the defaults:
  name: 'css', // the display name of the generated tasks
  src: 'src/',
  dist: 'pub/',
  glob: '*.styl', // Glob|Array<Glob> – for entry points. Use '!' prefix to ignore
  watchGlob: '*/**/*.styl', // Glob|Array<Glob> – additional files to watch for changes (or '!' ignore).
  sourcemaps: '.', // boolean or string (relative location)
  minify: true,
};

// Create the gulp tasks based on the above options.
const cssTasks = stylusTaskFactory(options);

// cssTasks is a two item array...
const [cssBundle, cssWatch] = cssTasks;
// ...but it also exposes the tasks as named properties.
const { bundle, watch } = cssTasks;

Readme

Keywords

none

Package Sidebar

Install

npm i @hugsmidjan/gulp-stylus

Weekly Downloads

1

Version

0.2.3

License

ISC

Unpacked Size

4.07 kB

Total Files

4

Last publish

Collaborators

  • hugsmidjan-is
  • maranomynet