# gulp-process-ref

> concat css, js by html

Latest version **0.0.2** (published 2016-05-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install gulp-process-ref
pnpm add gulp-process-ref
yarn add gulp-process-ref
bun add gulp-process-ref
```

## 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.0.2 |
| Published | 2016-05-09 |
| First published | 2016-05-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | tuxming |
| Maintainers | tuxming |
| Keywords | gulp, gulp-process, gulp-process-ref |

## Links

- npm: https://www.npmjs.com/package/gulp-process-ref
- Repository: https://github.com/tuxming/gulp-process-ref
- Homepage: https://github.com/tuxming/gulp-concat-ref#readme
- Issues: https://github.com/tuxming/gulp-concat-ref/issues
- npm.io page: https://npm.io/package/gulp-process-ref

## Recent versions

- 0.0.2 (latest) — 2016-05-09
- 0.0.1 — 2016-05-07

## README

# gulp-process-ref [![NPM version][npm-image]][npm-url] [![Build status][travis-image]][travis-url]

> process css, js by html

## Usage

First, install `gulp-process-ref` as a development dependency:

```shell
npm install --save-dev gulp-process-ref
```

Then, add it to your `gulpfile.js`:

### Gulpfile
```javascript
var htmlref = require('gulp-process-ref');

var jsprocess = fuunction(stream, dist){
stream.pipe(concat(name))
	.pipe(jshint('.jshintrc'))
	.pipe(jshint.reporter('jshint-stylish'))
	.pipe(load.uglify())
	.pipe(gulp.dest('./dist'+dist));
}
var cssprocess = function(stream, dist){
stream.pipe(load.concat(cname))
	.pipe(cleanCSS())
	.pipe(gulp.dest("./dist"+cdist));
}
 
gulp.task('html', function(){
	gulp.src("/*.html")
		.pipe(htmlref(jsprocess, cssprocss));
});
```

### html
```html
	<span class="buildjs" name="main.js" dist="/scripts/" />
	<script type="text/javascript" class="concat" base="../.." src="../../script/main.js"></script>
	<script type="text/javascript" class="concat" base="../.." src="../../script/config.js"></script>
	
	<span class="buildcss" name="main.css" dist="/styles/" />
	<link type="text/css" class="concat" base="../.." href="../../styles/main.css"></link>
	<link type="text/css" class="concat" base="../.." href="../../styles/style1.css"></link>
```

### result
```html
	<script type="text/javascript" src="/scripts/main.js"/>
	<link type="text/css" href="/styles/main.css" />
```

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