0.0.15 • Published 10 years ago

gulp-manifest2 v0.0.15

Weekly downloads
1
License
ISC
Repository
-
Last release
10 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

10 years ago

0.0.14

10 years ago

0.0.13

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago