a-painter icon indicating copy to clipboard operation
a-painter copied to clipboard

Offline development

Open fernandojsg opened this issue 7 years ago • 8 comments

Right now most of the assets are loaded from the CDN, so if you won't be able to work on the project while being offline. Maybe we could solve this by using some cache plugin (html5 app cache) on webpack? /cc @ngokevin @cvan

fernandojsg avatar Oct 03 '16 15:10 fernandojsg

Can we move the assets into the repo? We could cache, but that seems simplest.

ngokevin avatar Oct 03 '16 16:10 ngokevin

Yeah, I think so :D What do you think @dmarcos ?

fernandojsg avatar Oct 03 '16 16:10 fernandojsg

@ngokevin still we have some cdn access for uploadcare, clipboardjs and so on. Should we also include them into the repo as vendor files? Or do you have any other proposal for them?

fernandojsg avatar Oct 03 '16 16:10 fernandojsg

(Related to #111)

cvan avatar Oct 03 '16 18:10 cvan

Why not add them as dependencies and pull from NPM?

msfeldstein avatar Oct 06 '16 05:10 msfeldstein

Would make it a lot easier to modify a-frame while working on the project as well, i'm unclear how i can add features to a-frame and test them in a-painter easily

msfeldstein avatar Oct 06 '16 05:10 msfeldstein

Offline meaning be able to load https://aframe.io/a-painter/ and have that load withoutneeding to install npm, serve the A-Painter format locally, and so forth. Service Workers enable this kind of pattern.

cvan avatar Oct 06 '16 06:10 cvan

FYI: I made a tool for handling a Service Worker that is versioned based on a hash of static assets in a directory:

https://github.com/cvan/sherpy https://gist.github.com/cvan/b0b373442a69b298fc05d4a8a8001d5a

Might be useful out of the box, though you may have to tweak things slightly - YMMV.

cvan avatar Oct 28 '16 12:10 cvan