# gulp-penthouse

> Gulp plugin for extracting critical path css

Latest version **0.2.0** (published 2017-02-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-penthouse
pnpm add gulp-penthouse
yarn add gulp-penthouse
bun add gulp-penthouse
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2017-02-28 |
| First published | 2017-02-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | Andrii Volin |
| Maintainers | angyvolin |
| Keywords | gulpplugin, penthouse, critical, path, css, tools, css |

## Links

- npm: https://www.npmjs.com/package/gulp-penthouse
- Repository: https://github.com/angyvolin/gulp-penthouse
- Homepage: https://github.com/angyvolin/gulp-penthouse#readme
- Issues: https://github.com/angyvolin/gulp-penthouse/issues
- npm.io page: https://npm.io/package/gulp-penthouse

## Dependencies (2)

- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.8
- [penthouse](https://npm.io/package/penthouse.md) ~0.10.9

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 0.2.0 (latest) — 2017-02-28

## README

# gulp-penthouse
Gulp plugin for extracting critical path css

> A gulp plugin based on <a href="http://www.npmjs.org/package/penthouse">Penthouse</a> that extracts
> <a href="https://addyosmani.com/blog/detecting-critical-above-the-fold-css-with-paul-kinlan-video/">critical path css</a> 
> to increase page speed rendering

## Up and running

Installation:
```js
npm install gulp-penthouse --save-dev
```

Example gulp task:
```js
var gulp = require('gulp');
var criticalCss = require('gulp-penthouse');

gulp.task('critical-css', function () {
    return gulp.src('./styles.css')
        .pipe(criticalCss({
            out: 'critical.css',
            url: 'http://localhost:9000',
            width: 1300,
            height: 900,
            strict: true,
            userAgent: 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
        }))
        .pipe(gulp.dest('./dist/css/'));
});

```

---
_Source: https://npm.io/package/gulp-penthouse · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
