@n3dst4/build-stylesheets
v1.1.0
Published
![Travis status](https://travis-ci.org/n3dst4/build-stylesheets.svg)
Downloads
5
Readme
@n3dst4/build-stylesheets
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.