grunt-manifesto

0.1.0 • Public • Published

grunt-manifesto

HTML5 cache manifest generator. Inspired by grunt-manifest.

Getting Started

This plugin requires Grunt ~0.4.0

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-manifesto --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-manifesto');

Manifesto task

Run this task with the grunt manifesto command.

Task targets, files and options may be specified according to the grunt Configuring tasks guide.

Example configuration

grunt.initConfig({
    manifesto: {
        target: {
            src: ['scripts/*.js*', 'stylesheets/*.css', 'index.html'],
            dest: 'manifest.appcache',
            options: {
                network: ['*'],
                fallback: ['offline.html'],
                hash: true,
                timestamp: true
            }
        }
    }
});

Readme

Keywords

none

Package Sidebar

Install

npm i grunt-manifesto

Weekly Downloads

1

Version

0.1.0

License

ISC

Last publish

Collaborators

  • jgillich