# gulp-juice

> process html files through juice to inline CSS

Latest version **0.1.0** (published 2015-04-13) · MIT license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2015-04-13 |
| First published | 2014-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Lucas Hrabovsky |
| Maintainers | imlucas |
| Keywords | gulpplugin, juice, inlinecss |

## Links

- npm: https://www.npmjs.com/package/gulp-juice
- Repository: https://github.com/imlucas/gulp-juice
- Homepage: http://github.com/imlucas/gulp-juice
- Issues: https://github.com/imlucas/gulp-juice/issues
- npm.io page: https://npm.io/package/gulp-juice

## Dependencies (3)

- [juice](https://npm.io/package/juice.md) ~1.0.0
- [gulp-util](https://npm.io/package/gulp-util.md) ~2.2.14
- [event-stream](https://npm.io/package/event-stream.md) ~3.1.0

## Recent versions

- 0.1.0 (latest) — 2015-04-13
- 0.0.2 — 2014-02-23
- 0.0.1 — 2014-02-23

## README

# gulp-juice

[![build status](https://secure.travis-ci.org/imlucas/gulp-juice.png)](http://travis-ci.org/imlucas/gulp-juice)

Stream html files through [juice](https://www.npmjs.org/package/juice) to
inline CSS.

## Examples

```
var juice = require('gulp-juice');

gulp.task('bootloader', function(){
  gulp.src('./.build/bootloader.html')
    .pipe(juice({}))
    .pipe(gulp.dest('./.build/bootloader.inline.html'));
});

gulp.task('deploy', ['build', 'manifest', 'bootloader', 'publishtoS3']);
```

Protip when using with a template renderer: need to pipe to dest first as
you probably want `juice` resolving css relative to our actual build output:

```
var juice = require('gulp-juice'),
  jade = require('gulp-jade');

gulp.task('bootloader', function(){
  gulp.src('./app/templates/bootloader.jade')
    .pipe(jade({pretty: true}))
    .pipe(gulp.dest('./.build'))
    .pipe(juice())
    .pipe(gulp.dest('./.build'));
});

gulp.task('deploy', ['build', 'manifest', 'bootloader', 'publishtoS3']);
```

## License

MIT

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