@juandinella/penny-pipes

1.7.8 • Public • Published

penny-pipes

Plugabble pipes for a composable gulp stream

npm install penny-pipes

Example

const gulp = require("gulp");
const styles = require("penny-pipes").styles;

gulp.task("styles", () =>
  gulp
    .src("src/styles/**/!(_)*.scss")
    .pipe(
      styles({
        modules: true,
        name: "main.css",
        production: process.env.NODE_ENV === "production"
      })()
    )
    .on("error", config.onError)
    .pipe(gulp.dest("dist/styles"))
);

Contents

  • critical: create critical CSS
  • html: html with replace and posthtml
  • minifyStyles: minimize, comb, groupCssMediaQueries and nano
  • pug: pug and posthtml with modules
  • purify: remove unused CSS
  • styles: sourcemaps, postCss with autoprefixer

Penny boilerplate

We use this already on our own Frontend boilerplate, don't be shy and try it out 🎩

Readme

Keywords

none

Package Sidebar

Install

npm i @juandinella/penny-pipes

Weekly Downloads

1

Version

1.7.8

License

MIT

Unpacked Size

7.15 kB

Total Files

5

Last publish

Collaborators

  • juandinella