0.0.15 • Published 9 years ago

gulp-manifest2 v0.0.15

Weekly downloads
1
License
ISC
Repository
-
Last release
9 years ago

gulp-manifest2

Generate manifest file for web applications to allow them work offline.

Installation

Install package with NPM and add it to your development dependencies:

npm install --save-dev gulp-manifest2

Usage

var manifest = require('gulp-manifest2');

gulp.task('manifest', function() {
  return gulp.src('build/*')
    .pipe(manifest({
      timestamp: true
    }))
    .pipe(gulp.dest('build'));
});

Options

  • root. Type String. Optional.

    	Root directory for which it calculates relative paths. Default value is returned by `process.cwd()`.
  • cwd. Type String. Optional.

    	Current working directory. Default value is returned by `process.cwd()`.
  • name. Type String. Optional.

    	Name of output manifest file. Default name is `app.manifest`.
  • timestamp. Type Boolean. Optional.

    	Set to `true` to enable insertion a comment with manifest creation date. This will take browsers to invalidate their cache.
  • cache. Type Array. Optional.

    	List of files and urls which should be cached too.
  • network. Type Array. Optional.

    	List of files and urls which should be not be cached, but loads as usual. Default value is array of `http://*`, `https://*`, `*`.
  • fallback. Type Array. Optional.

    	List of fallback files. Each item in list is space-separated online/offline resource paths.
0.0.15

9 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago