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).
var calManifest = require('gulp-cordova-app-loader-manifest');
gulp.task('manifest', function() {
return gulp.src('./www/**')
.pipe(calManifest(options))
.pipe(gulp.dest('./'));
});
options.load = [
'lib/your-app.js',
'css/your-css.css'
];
options.root = './';
Specifies the manifest.root option.
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'
]