Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support add prefix to files #21

Closed
gasolin opened this issue Mar 14, 2013 · 4 comments
Closed

support add prefix to files #21

gasolin opened this issue Mar 14, 2013 · 4 comments

Comments

@gasolin
Copy link

gasolin commented Mar 14, 2013

Thanks for grunt-manifest, its super convenient :)

In case I did not put .appcache file in the root folder, for example:

I have a grunt config looks like

manifest: {
      generate: {
        options: {
          basePath: "../",
          preferOnline: false,
          verbose: true,
          timestamp: true
        },
        src: [
            "public/osx/*.html"
        ],
        dest: "public/osx/manifest.appcache"
      }
    } 

The generated appcache file looks like

CACHE MANIFEST
# This manifest was generated by grunt-manifest HTML5 Cache Manifest Generator
# Time: Thu Mar 14 2013 21:52:50 GMT+0800 (CST)

CACHE:
public/osx/index.html

the offline cache will try to fetch wrong public/osx/public/osx/index.html instead of correct /public/osx/index.html.

but what I really want is to have CACHE files with / as prefix.

/public/osx/index.html

instead of

public/osx/index.html

to prevent some miss reference issue.

@gasolin
Copy link
Author

gasolin commented Mar 14, 2013

send pull request #22

@codeBelt
Copy link

codeBelt commented Sep 1, 2013

I don't see this cachePrefix in the https://github.com/gunta/grunt-manifest/blob/master/tasks/manifest.js file. I would also like to use this cachePrefix option.

Also can you make a push to https://npmjs.org/package/grunt-manifest so I can use options.revision.

@jimmywarting
Copy link

Close this issue in favor to option.process #31
better for prefix and suffix and modification

@gunta
Copy link
Owner

gunta commented Jan 26, 2015

Closing for #31

@gunta gunta closed this as completed Jan 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants