Skip to content

antonpenev/gulp-cordova-app-loader-manifest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-cordova-app-loader-manifest

Gulp plugin to create cordova-app-loader manifests. This plugin is fork from alexbeyn/gulp-cordova-app-loader-manifest, so all kudos go for him. There are minor changes in the manifest generation (mostly to fit the structure of my in my current projects easier).

Usage

var calManifest = require('gulp-cordova-app-loader-manifest');

gulp.task('manifest', function() {
  return gulp.src('./www/**')
    .pipe(calManifest(options))
    .pipe(gulp.dest('./'));
});

Options

load

options.load = [
  'lib/your-app.js',
  'css/your-css.css'
];

root

options.root = './';

Specifies the manifest.root option.

prefixSplit

options.prefixSplit = '/'

Specifies prefix to split the options.load filenames (default value is '/').

This means options.prefixSplit = 'www/ for the ['www/lib/app.js', 'www/css/style.css'] will produce the following output:

manifest.load = [
  'lib/app.js',
  'css/style.css'
]

About

Gulp plugin to create cordova-app-loader manifests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.3%
  • CSS 0.7%