ionic-gulp-scripts-copy
v2.0.1
Published
Gulp task for Ionic projects to copy default 3rd party scripts to a build directory
Downloads
29
Keywords
Readme
Scripts Copy Task
Copy default 3rd party scripts to build directory.
API
copyScripts([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 3rd party script files. Default:
[
'node_modules/es6-shim/es6-shim.min.js',
'node_modules/zone.js/dist/zone.js',
'node_modules/reflect-metadata/Reflect.js'
]
- dest (String) Output path for the HTML files. Default:
'www/build/js'
.
Example
var copyScripts = require('ionic-gulp-scripts-copy');
gulp.task('scripts', copyScripts);
gulp.task('scripts', function(){
return copyScripts({ dest: 'www/my-custom-build-dir' });
});