grunt-manifest icon indicating copy to clipboard operation
grunt-manifest copied to clipboard

No hash written to manifest file

Open ain opened this issue 11 years ago • 7 comments

There's no hash written to the manifest file on following configuration:

manifest: {
  dist: {
    options: {
      basePath: '<%= yeoman.dist %>/',
      cache: [],
//          network: ['*', 'http://*', 'https://*'],
      network: ['http://*'],
//          fallback: ['/ /offline.html'],
//          exclude: ['js/jquery.min.js'],
      preferOnline: false,
      timestamp: true,
      verbose: false,
      hash: true,
      master: ['index.html']
    },
    src: [
      'index.html',
      '{newcomer,expert}/*/*.html',
      'bower_components/*/*',
      'images/**/*',
      'scripts/*.js',
      'styles/*.css',
      '{videos,fonts}/*'
    ],
    dest: '<%= yeoman.dist %>/manifest.appcache'
  }
}

version: 0.4.0

ain avatar Jan 16 '14 15:01 ain

Just tested: also not working with timestamp: false.

ain avatar Jan 16 '14 16:01 ain

I can confirm the issue and it seems like the package just hasn't been updated in the npm registry. @gunta can you please publish a new version?

jgillich avatar Feb 05 '14 08:02 jgillich

+1

jareddellitt avatar Feb 11 '14 22:02 jareddellitt

+1

brianium avatar Apr 03 '14 16:04 brianium

FYI: Due to no response from the author of this package, I wrote a simple clone that includes a hash option and can be installed from npm. It works fine for me, if you experience any bugs I will gladly fix them.

jgillich avatar Apr 03 '14 17:04 jgillich

It appears his NPM repo isnt updated to what he has here on Github.

If you copy tasks/manifest.js contents from this repo, into your copy in node_modules/grunt-manifest/tasks/manifest.js, hashes will work.

@gunta can you update your NPM repo please, so the most recent code you've written is available?

argyleink avatar Apr 27 '14 00:04 argyleink

See #48.

gunta avatar Apr 28 '14 04:04 gunta