@denysvuika/ionic-gulp-html-copy
v0.1.0
Published
Gulp task for Ionic projects to copy HTML sources to a build directory
Downloads
2
Maintainers
Readme
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: '.'
});
});