Simple way to add a cache manifest to a Meteor app?
Asked Answered
H

1

9

I would like to make the Meteor (meteor.com) app load without connectivity to the meteor server(offline) via cache manifest.

I think a similar question has already been asked here: How can I add a cache manifest to a Meteor app? but I couldn't follow their solution (more on this below).

Is there a simple way to include a cache manifest on a Meteor app and have the manifest populated with all the meteor assets?


From the related post my questions are:

  • You can get a full list of css and js files by hooking into: bundle.css and bundle.js.client

    What is involved in "hooking into" those files? How should I proceed?

  • buffer.files.client_cacheable['manifest.appcache'] = new Buffer(manifestcontent);

    What does this do and where should it go?

  • Then you can edit /app/lib/app.html.in to add the reference in

    Is this just the manifest="/application.manifest" bit in the html tag?

Hickey answered 19/8, 2012 at 18:30 Comment(1)
Just type meteor add appcache #10669187Manas
N
1

I would find it easier to build your manifest from outside, using ManifestR. The page also included how it should be added into the <head> of each page.

Northward answered 13/1, 2013 at 19:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.