@n3dst4/build-stylesheets

1.1.0 • Public • Published

@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @n3dst4/build-stylesheets

Weekly Downloads

0

Version

1.1.0

License

ISC

Last publish

Collaborators

  • n3dst4