@n3dst4/build-stylesheets
![Travis status](https://travis-ci.org/n3dst4/build-stylesheets.svg)
Last updated 4 years ago by n3dst4 .
ISC · Original npm · Tarball · package.json
$ cnpm install @n3dst4/build-stylesheets 
SYNC missed versions from official npm registry.

@n3dst4/build-stylesheets

Travis status

An opinionated gulp-compatible stylesheet bundler

Installation

npm install @n3dst4/build-stylesheets --save

Usage

buildStylesheets(assetOptions, production)

Example

import buildStylesheets from "@n3dst4/build-stylesheets"
const production = process.env.NODE_ENV === "production"
gulp.src(path.join("stylesheets", "main.less")).
   pipe(buildStylesheets({
         src: "stylesheets",
         dest: "__generated/css/assets",
         prefix: "assets/"
      }, production).
   pipe(gulp.dest())

The assetOptions passed in will be passed wholesale to rework-assets.

The production argument will apply minification via csso if true.

Current Tags

  • 1.1.0                                ...           latest (4 years ago)

4 Versions

  • 1.1.0                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (13)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |