# gulp-html-require

> A gulp plugin which can import .html files into .html files

Latest version **0.0.3** (published 2017-11-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-html-require
pnpm add gulp-html-require
yarn add gulp-html-require
bun add gulp-html-require
```

## 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.3 |
| Published | 2017-11-13 |
| First published | 2017-11-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ouyang90 |
| Maintainers | ouyang90 |
| Keywords | gulp, gulpplugin, html, import |

## Links

- npm: https://www.npmjs.com/package/gulp-html-require
- npm.io page: https://npm.io/package/gulp-html-require

## Dependencies (2)

- [through2](https://npm.io/package/through2.md) ^2.0.1
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.7

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2017-11-13

## README

# gulp-html-require
> A gulp plugin which can import .html files into .js files

## Usage
First, install `gulp-html-require` as a devDependency:
```
npm install gulp-html-require --save-dev
```
Then add it to the `gulpfile.js`:
```
var htmlImport = require('gulp-html-require');

gulp.task('import', function () {
    gulp.src('./demo/index.js')
        .pipe(htmlrequire('./demo/components/'))
        .pipe(gulp.dest('dist')); 
})
```

## API
### htmlImport(string)
#### string
Type: `String`

The url of your components

---
[MIT](https://opensource.org/licenses/MIT)

Copyright © 2016 ouyang90

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