@denysvuika/ionic-gulp-html-copy

0.1.0 • Public • Published

HTML Copy Task

Copy HTML sources to build directory.

Installing

npm install @denysvuika/ionic-gulp-html-copy --save-dev

API

copyHTML([options])

Returns a stream of Vinyl files that can be piped.

Available options:

  • src (String|Array) Glob or array of globs (What's a glob?) matching HTML source files. Default: 'app/**/*.html'.
  • dest (String) Output path for the HTML files. Default: 'www/build'.
  • base (String) Base path. Default: '.'

Example

const copyHTML = require('@denysvuika/ionic-gulp-html-copy');

// use defaults

gulp.task('html', copyHTML);

// or customize

gulp.task('html', () => {
  return copyHTML({
    src: 'app/**/*.html',
    dest: 'www/build',
    base: '.'
  });
});

Package Sidebar

Install

npm i @denysvuika/ionic-gulp-html-copy

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • denysvuika